diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 21 insertions, 24 deletions
@@ -1,16 +1,15 @@ pkgbase = libopenaptx-git pkgdesc = Open Source implementation of Audio Processing Technology codec (aptX) - pkgver = 0.1.0 + pkgver = 0.2.0.r1.g99b0921 pkgrel = 1 url = https://github.com/pali/libopenaptx arch = x86_64 - license = LGPL 2.1 + license = LGPL2.1 makedepends = git + depends = glibc provides = libopenaptx - source = https://github.com/pali/libopenaptx/releases/download/0.1.0/libopenaptx-0.1.0.tar.gz - source = https://github.com/pali/libopenaptx/releases/download/0.1.0/libopenaptx-0.1.0.tar.gz.asc - validpgpkeys = B856B21074A8AE9B692B80858BF0C93D03E44352 - sha512sums = 532756cd89160d78d62f2c9c2c911afad8aab46b211eaaa30a6eea5f0cf41ab70e7dcba355322757d4bef42af6bff966972fea706989501ec9202d32b3d8984b + conflicts = libopenaptx + source = libopenaptx-git::git+https://github.com/pali/libopenaptx.git sha512sums = SKIP pkgname = libopenaptx-git @@ -1,32 +1,30 @@ -# Maintainer: Mitchell Renouf <mitchellarenouf@gmail.com> +# Maintainer: katt <magunasu.b97@gmail.com> pkgname=libopenaptx-git -_pkgname=libopenaptx -pkgver=0.1.0 +pkgver=0.2.0.r1.g99b0921 pkgrel=1 -pkgdesc="Open Source implementation of Audio Processing Technology codec (aptX)" +pkgdesc='Open Source implementation of Audio Processing Technology codec (aptX)' arch=('x86_64') url="https://github.com/pali/libopenaptx" -license=('LGPL 2.1') -depends=() +license=('LGPL2.1') +depends=('glibc') makedepends=('git') -provides=('libopenaptx') -conflicts=() -replaces=() -backup=() -options=() -install= -source=("https://github.com/pali/libopenaptx/releases/download/$pkgver/libopenaptx-$pkgver.tar.gz"{,.asc}) -sha512sums=('532756cd89160d78d62f2c9c2c911afad8aab46b211eaaa30a6eea5f0cf41ab70e7dcba355322757d4bef42af6bff966972fea706989501ec9202d32b3d8984b' - 'SKIP') -validpgpkeys=('B856B21074A8AE9B692B80858BF0C93D03E44352') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("$pkgname::git+${url}.git") +sha512sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} build() { - cd "$srcdir/$_pkgname-$pkgver" + cd "$pkgname" make } package() { - cd "$srcdir/$_pkgname-$pkgver" + cd "$pkgname" make PREFIX=/usr DESTDIR="$pkgdir" install } |