diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 27 insertions, 20 deletions
@@ -1,34 +1,41 @@ -# Maintainer: mutantmonkey <aur@mutantmonkey.in> +# Maintainer: MGislv <mgislv at ceppo.xyz> +# Contributor: mutantmonkey <aur@mutantmonkey.in> + pkgname=stag-git -_gitname=stag -pkgver=93.0a158e7 -pkgrel=1 -pkgdesc="A C curses based mp3/ogg/flac tagging application (git version)" +pkgver=v1.0.r1.g0a158e7 +pkgrel=2 +pkgdesc='Ncurses based audio file tagger' arch=('i686' 'x86_64') -url="http://cryptm.org/~sturm/stag.html" -license=('custom:none') +url='https://github.com/smabie/stag' +license=('custom') depends=('ncurses' 'taglib') makedepends=('git') -options=('!buildflags') -provides=('stag') conflicts=('stag') -source=('git+https://github.com/smabie/stag.git') -sha256sums=('SKIP') +source=("git+$url.git" + 'libs.patch') +sha256sums=('SKIP' + 'SKIP') pkgver() { - cd $_gitname - echo $(git rev-list --count master).$(git rev-parse --short master) + cd stag + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd stag + patch --forward --strip=1 --input="$srcdir"/libs.patch } build() { - cd $_gitname - make + cd stag + sed -n '/Released into the public domain/p' README > LICENSE + export LDFLAGS="${LDFLAGS/--as-needed,/}" + make } package() { - cd $_gitname - install -Dm 755 stag $pkgdir/usr/bin/stag - install -D stag.1 $pkgdir/usr/share/man/man1/stag.1 + cd stag + install -Dm755 stag "$pkgdir/usr/bin/stag" + install -Dm644 stag.1 "$pkgdir/usr/share/man/man1/stag.1" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -# vim:set ts=2 sw=2 et: |