diff options
author | affe-ali | 2017-09-15 18:42:58 +0200 |
---|---|---|
committer | affe-ali | 2017-09-15 18:42:58 +0200 |
commit | ffa02b24c0673f61fdb722b99028587430bde8f2 (patch) | |
tree | 7e69b2c2f0be2fce4aa68ad1af363db52e659e26 | |
parent | 4e8e3e8bab2d36f9a834fd17e926d7ad31574add (diff) | |
download | aur-ffa02b24c0673f61fdb722b99028587430bde8f2.tar.gz |
Switch to build system
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 17 insertions, 10 deletions
@@ -1,15 +1,17 @@ pkgbase = gydl-git pkgdesc = Gydl (Graphical Youtube-dl) is a GUI wrapper around the already existing youtube-dl program. - pkgver = r76.4b245ea + pkgver = r88.fae39bc pkgrel = 1 url = https://github.com/JannikHv/gydl arch = any - license = MIT + license = GPL2 makedepends = git + makedepends = meson depends = python depends = gtk3 depends = python-gobject depends = youtube-dl + conflicts = gydl source = gydl-git::git://github.com/JannikHv/gydl.git sha256sums = SKIP @@ -1,14 +1,15 @@ #Maintainer: affe-ali <affe-ali@web.de> #Co-Maintainer: Jannik Hauptvogel <jannikhv@gmail.com> pkgname=gydl-git -pkgver=r76.4b245ea +pkgver=r88.fae39bc pkgrel=1 pkgdesc="Gydl (Graphical Youtube-dl) is a GUI wrapper around the already existing youtube-dl program." arch=('any') url="https://github.com/JannikHv/gydl" -license=('MIT') +license=('GPL2') depends=('python' 'gtk3' 'python-gobject' 'youtube-dl') -makedepends=('git') +makedepends=('git' 'meson') +conflicts=('gydl') source=("$pkgname"::"git://github.com/JannikHv/gydl.git") sha256sums=('SKIP') @@ -17,11 +18,15 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +build() { + cd "$srcdir/$pkgname" + # Remove any potential residual build files + rm -rf build + meson build --prefix=/usr +} + package() { - cd $srcdir/$pkgname/src - install -D gydl $pkgdir/usr/bin/gydl - cd ../data - install -D com.github.JannikHv.Gydl.desktop $pkgdir/usr/share/applications/gydl.desktop - install -D gydl.svg $pkgdir/usr/share/icons/gydl.svg + cd "$srcdir/$pkgname/build" + env DESTDIR="$pkgdir" ninja install install -D ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE }
\ No newline at end of file |