1. Leyorus
  2. MkvExtract-Gtk

Commits

Leyorus  committed eb483e8

fix archlinux packaging errors

  • Participants
  • Parent commits b895890
  • Branches master
  • Tags v0.9.1

Comments (0)

Files changed (1)

File pkg/archlinux/PKGBUILD

View file
  • Ignore whitespace
 # Maintainer: Leyorus <leyorus@gmail.com>
 # Contributor: Leyorus <leyorus@gmail.com>
 pkgname=mkvextract-gtk-git
-pkgver=20120430
+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')
-groups=
-provides=
-depends=
-optdepends=
-makedepends=('git')
-conflicts=
-replaces=
+depends=('mkvtoolnix-cli')
+makedepends=('git' 'cmake')
 _gitroot="https://bitbucket.org/Leyorus/mkvextract-gtk.git"
 _gitname="mkvextract-gtk"
-backup=
-install=
 
 build() {
+	cd "$srcdir"
 	if [[ -d $_gitname ]] ; then
-		git pull origin || return 1 
+		cd $_gitname && git pull origin && cd .. 
 	else
-		git clone $_gitroot || return 1
+		git clone $_gitroot
 	fi
 	cd $_gitname
-	cmake .	
-	make || return 1
-	mkdir -p $pkgdir/usr/bin/ 
 
+	cmake . && make
+	
+	mkdir -p $pkgdir/usr/bin/
 	cp mkvextract-gtk $pkgdir/usr/bin/
 	chmod +x $pkgdir/usr/bin
 }