diff options
author | Luis Martinez | 2022-07-18 18:48:05 -0500 |
---|---|---|
committer | Luis Martinez | 2022-07-18 18:48:05 -0500 |
commit | 9e0e8998cb1a61e5a850c825432a514f7e40ae22 (patch) | |
tree | 985ab2de298bf4f596d61f188450413d6dd93d9f | |
parent | 533ec3a051e46705cd555900b4d401a746949302 (diff) | |
download | aur-libopenaptx-git.tar.gz |
package cleanup
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 19 insertions, 22 deletions
@@ -1,6 +1,6 @@ pkgbase = libopenaptx-git pkgdesc = Open Source implementation of Audio Processing Technology codec (aptX) - pkgver = 0.2.1 + pkgver = 0.2.1.r0.g811bc18 pkgrel = 1 url = https://github.com/pali/libopenaptx arch = x86_64 @@ -9,7 +9,7 @@ pkgbase = libopenaptx-git depends = glibc provides = libopenaptx.so conflicts = libopenaptx - source = git+https://github.com/pali/libopenaptx#commit=811bc18586d634042618d633727ac0281d4170b8 - sha512sums = SKIP + source = libopenaptx::git+https://github.com/pali/libopenaptx + sha256sums = SKIP pkgname = libopenaptx-git @@ -1,35 +1,32 @@ -# Maintainer: Kicker0429 <kicker0429@yahoo.com> +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Kicker0429 <kicker0429@yahoo.com> # Contributor: katt <magunasu.b97@gmail.com> pkgname=libopenaptx-git -pkgver=0.2.1 +_pkgname="${pkgname%-git}" +pkgver=0.2.1.r0.g811bc18 pkgrel=1 pkgdesc='Open Source implementation of Audio Processing Technology codec (aptX)' -arch=(x86_64) +arch=('x86_64') url='https://github.com/pali/libopenaptx' -license=(GPL3) -depends=(glibc) -makedepends=(git) -provides=(libopenaptx.so) -conflicts=(libopenaptx) -_commit=811bc18586d634042618d633727ac0281d4170b8 # tags/0.2.1 -source=("git+$url#commit=$_commit") -sha512sums=('SKIP') +license=('GPL3') +depends=('glibc') +makedepends=('git') +provides=("$_pkgname.so") +conflicts=("$_pkgname") +source=("$_pkgname::git+$url") +sha256sums=('SKIP') pkgver() { - cd "${pkgname%-git}" - git describe --tags | sed 's/-/+/g' + git -C "$_pkgname" describe --long --tags | sed 's/-/.r/;s/-/./' } build() { - cd "${pkgname%-git}" - make CPPFLAGS="$CPPFLAGS" \ - CFLAGS="-O3 -mavx2 $CFLAGS" \ - LDFLAGS="$LDFLAGS" \ - PREFIX=/usr "$@" + cd "$_pkgname" + make CFLAGS="-O2 $CFLAGS" LDFLAGS="$LDFLAGS" } package() { - cd "${pkgname%-git}" + cd "$_pkgname" make PREFIX=/usr DESTDIR="$pkgdir" install } |