[arch-commits] Commit in lib32-speexdsp/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Tue Jun 21 22:38:35 UTC 2022
Date: Tuesday, June 21, 2022 @ 22:38:34
Author: heftig
Revision: 1238882
1.2.1-1
Modified:
lib32-speexdsp/trunk/PKGBUILD
----------+
PKGBUILD | 40 +++++++++++++++++++++++++---------------
1 file changed, 25 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-21 22:33:00 UTC (rev 1238881)
+++ PKGBUILD 2022-06-21 22:38:34 UTC (rev 1238882)
@@ -1,39 +1,49 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
pkgname=lib32-speexdsp
-pkgver=1.2.0
+pkgver=1.2.1
pkgrel=1
pkgdesc="DSP library derived from Speex (32-bit)"
+url="https://www.speex.org/"
arch=(x86_64)
-url="https://www.speex.org/"
license=(BSD)
depends=(lib32-glibc speexdsp)
-source=(https://downloads.us.xiph.org/releases/speex/speexdsp-$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 speexdsp-$pkgver
+ cd speexdsp
+ ./autogen.sh
}
build() {
export CC="gcc -m32"
- export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
- cd speexdsp-$pkgver
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static \
- --libdir=/usr/lib32
+ cd speexdsp
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --libdir=/usr/lib32 \
+ --disable-static
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
- cd speexdsp-$pkgver
+ cd speexdsp
make -k check
}
package() {
- cd speexdsp-$pkgver
+ cd speexdsp
make DESTDIR="$pkgdir" install
- rm -rf "$pkgdir"/usr/{include,share}
- mkdir -p "$pkgdir/usr/share/licenses"
- ln -s speexdsp "$pkgdir/usr/share/licenses/$pkgname"
+ rm -r "$pkgdir"/usr/{include,share}
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
}
More information about the arch-commits
mailing list