[arch-commits] Commit in speexdsp/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Tue Jun 21 22:38:38 UTC 2022
Date: Tuesday, June 21, 2022 @ 22:38:38
Author: heftig
Revision: 449246
1.2.1-1
Modified:
speexdsp/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++------------
1 file changed, 23 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-21 22:27:28 UTC (rev 449245)
+++ PKGBUILD 2022-06-21 22:38:38 UTC (rev 449246)
@@ -1,33 +1,44 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
pkgname=speexdsp
-pkgver=1.2.0
-pkgrel=2
+pkgver=1.2.1
+pkgrel=1
pkgdesc="DSP library derived from Speex"
+url="https://www.speex.org/"
arch=(x86_64)
-url="https://www.speex.org/"
license=(BSD)
depends=(glibc)
-source=(https://downloads.us.xiph.org/releases/speex/$pkgname-$pkgver.tar.gz)
-sha512sums=('e357cd5377415ea66c862302c7cf8bf6a10063cacd903f0846478975b87974cf5bdf00e2c6759d8f4f453c4c869cf284e9dc948a84a83d7b2ab96bd5405c05ec')
+makedepends=(git)
+options=(debug)
+_commit=1b28a0f61bc31162979e1f26f3981fc3637095c8 # tags/SpeexDSP-1.2.1^0
+source=("git+https://gitlab.xiph.org/xiph/speexdsp.git#commit=$_commit")
+b2sums=('SKIP')
+pkgver() {
+ cd speexdsp
+ git describe --tags | sed 's/^SpeexDSP-//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
prepare() {
- cd $pkgname-$pkgver
+ cd speexdsp
+ ./autogen.sh
}
build() {
- cd $pkgname-$pkgver
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static
+ cd speexdsp
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-static
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
- cd $pkgname-$pkgver
+ cd speexdsp
make -k check
}
package() {
- cd $pkgname-$pkgver
+ cd speexdsp
make DESTDIR="$pkgdir" install
- install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
}
More information about the arch-commits
mailing list