Commits

Leyorus committed caf56a5

Archlinux git packaging

Comments (0)

Files changed (1)

pkg/archlinux/PKGBUILD

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