summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVanilla Pudding2022-04-12 12:22:52 -0600
committerVanilla Pudding2022-04-12 12:22:52 -0600
commit533ec3a051e46705cd555900b4d401a746949302 (patch)
tree0888731bdba1614ccadf8908ed2c15b657df63ba
parentc10275f5ed6822d0a7aeeb5c27be7f1f432c4e7f (diff)
downloadaur-533ec3a051e46705cd555900b4d401a746949302.tar.gz
Revert to Erik Vaughn
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 9 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a81da6eedeb..a0b47b970fd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,7 +9,7 @@ pkgbase = libopenaptx-git
depends = glibc
provides = libopenaptx.so
conflicts = libopenaptx
- source = 0.2.1.tar.gz::https://github.com/pali/libopenaptx/archive/0.2.1.tar.gz
- sha512sums = 7c7f515585ed41cd276cd3141037ce21e3ebdb713dc932bcdb33320d9910c734bc81e581e2c09b3399b3516c789e5da7128fdab5ab6b5e4f42a86b6ac6d3f28c
+ source = git+https://github.com/pali/libopenaptx#commit=811bc18586d634042618d633727ac0281d4170b8
+ sha512sums = SKIP
pkgname = libopenaptx-git
diff --git a/PKGBUILD b/PKGBUILD
index fe2ba21dfa4..23fda9f8405 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,3 +1,4 @@
+# Maintainer: Kicker0429 <kicker0429@yahoo.com>
# Contributor: katt <magunasu.b97@gmail.com>
pkgname=libopenaptx-git
@@ -11,17 +12,17 @@ depends=(glibc)
makedepends=(git)
provides=(libopenaptx.so)
conflicts=(libopenaptx)
-source=("$pkgver.tar.gz::https://github.com/pali/libopenaptx/archive/$pkgver.tar.gz")
-sha512sums=('7c7f515585ed41cd276cd3141037ce21e3ebdb713dc932bcdb33320d9910c734bc81e581e2c09b3399b3516c789e5da7128fdab5ab6b5e4f42a86b6ac6d3f28c')
-_pkgaltname=libopenaptx
+_commit=811bc18586d634042618d633727ac0281d4170b8 # tags/0.2.1
+source=("git+$url#commit=$_commit")
+sha512sums=('SKIP')
pkgver() {
- cd "${_pkgaltname%}-${pkgver}"
+ cd "${pkgname%-git}"
git describe --tags | sed 's/-/+/g'
}
build() {
- cd "${_pkgaltname%}-${pkgver}"
+ cd "${pkgname%-git}"
make CPPFLAGS="$CPPFLAGS" \
CFLAGS="-O3 -mavx2 $CFLAGS" \
LDFLAGS="$LDFLAGS" \
@@ -29,6 +30,6 @@ build() {
}
package() {
- cd "${_pkgaltname%}-${pkgver}"
+ cd "${pkgname%-git}"
make PREFIX=/usr DESTDIR="$pkgdir" install
}