Commits

Leyorus committed 4b66e74

Archlinux packaging : add non git pkgbuild

Comments (0)

Files changed (2)

pkg/archlinux/PKGBUILD

 # Maintainer: Leyorus <leyorus@gmail.com>
 # Contributor: Leyorus <leyorus@gmail.com>
-pkgname=mkvextract-gtk-git
-pkgver=20130202
+pkgname=mkvextract-gtk
+pkgver=0.9.1
 pkgrel=1
 pkgdesc="Simple Linux GUI to extract tracks from matroska (mkv) files"
 arch=(any)
 url="https://bitbucket.org/Leyorus/mkvextract-gtk/"
 license=('GPL2')
 depends=('mkvtoolnix-cli')
-makedepends=('git' 'cmake')
-_gitroot="https://bitbucket.org/Leyorus/mkvextract-gtk.git"
-_gitname="mkvextract-gtk"
+source="https://bitbucket.org/Leyorus/mkvextract-gtk/get/v0.9.1.tar.gz"
+md5sums=('aa0ff7de372be15113218fa0b6e5f326')
 
 build() {
-	cd "$srcdir"
-	if [[ -d $_gitname ]] ; then
-		cd $_gitname && git pull origin && cd .. 
-	else
-		git clone $_gitroot
-	fi
-	cd $_gitname
-
+	cd "$srcdir/Leyorus-$pkgname-eb483e892e6b/"
 	cmake . && make
 	
 	mkdir -p $pkgdir/usr/bin/

pkg/archlinux/git/PKGBUILD

+# Maintainer: Leyorus <leyorus@gmail.com>
+# Contributor: Leyorus <leyorus@gmail.com>
+pkgname=mkvextract-gtk-git
+pkgver=20130202
+pkgrel=1
+pkgdesc="Simple Linux GUI to extract tracks from matroska (mkv) files"
+arch=(any)
+url="https://bitbucket.org/Leyorus/mkvextract-gtk/"
+license=('GPL2')
+depends=('mkvtoolnix-cli')
+makedepends=('git' 'cmake')
+_gitroot="https://bitbucket.org/Leyorus/mkvextract-gtk.git"
+_gitname="mkvextract-gtk"
+
+build() {
+	cd "$srcdir"
+	if [[ -d $_gitname ]] ; then
+		cd $_gitname && git pull origin && cd .. 
+	else
+		git clone $_gitroot
+	fi
+	cd $_gitname
+
+	cmake . && make
+	
+	mkdir -p $pkgdir/usr/bin/
+	cp mkvextract-gtk $pkgdir/usr/bin/
+	chmod +x $pkgdir/usr/bin
+}