[arch-commits] Commit in lib32-alsa-lib/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Tue Jun 7 08:30:26 UTC 2022


    Date: Tuesday, June 7, 2022 @ 08:30:26
  Author: dvzrv
Revision: 1228023

upgpkg: lib32-alsa-lib 1.2.7-1: Upgrade to 1.2.7.

Add -flto-partition=none to CFLAGS, as upstream does not support -flto=auto:
https://github.com/alsa-project/alsa-lib/issues/110
Remove unnecessary quoting and curly braces.

Modified:
  lib32-alsa-lib/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-07 08:30:15 UTC (rev 1228022)
+++ PKGBUILD	2022-06-07 08:30:26 UTC (rev 1228023)
@@ -3,7 +3,7 @@
 
 _name=alsa-lib
 pkgname=lib32-alsa-lib
-pkgver=1.2.6.1
+pkgver=1.2.7
 pkgrel=1
 pkgdesc="An alternative implementation of Linux sound support (32 bit)"
 arch=(x86_64)
@@ -11,28 +11,32 @@
 license=(LGPL2.1)
 depends=(lib32-glibc "alsa-lib=${pkgver}")
 provides=(libasound.so libatopology.so)
-source=("https://www.alsa-project.org/files/pub/lib/${_name}-${pkgver}.tar.bz2"{,.sig})
-sha512sums=('70e539cf092b5d43e00e4134d8a3e184f0dc34312823e4b58a574320cbf06cb7369bc3251ecb1858033756a7a8c35d36faa8da48d49f6efe0cec905784adbd45'
+options=(debug)
+source=(https://www.alsa-project.org/files/pub/lib/$_name-$pkgver.tar.bz2{,.sig})
+sha512sums=('6bd48b07d659fddad792876326a93b2a549ce94bc191131670365599c31f81f737bfd8e94dec6fe296bc5d86df2e3e381bbb7a694d24fe7e8e501f1c994ed084'
             'SKIP')
-b2sums=('4f3d1d078678773b4f6a569d0eea95d0cf89a846605c3a95e11b92f1fe0bd9fb164b8f710906f0de9675ade7ef2123375eb1221945bec511708d6fdd85c051b9'
+b2sums=('a3bfbbfcf31625be0749218b3c02b307da9077d4bd82e9f980b8e3d6f9275f3a3f3c8158bb28fb1c61724a35e794eb3f6cc8872202ff42fb847725058109087e'
         'SKIP')
 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release at alsa-project.org>
 
 prepare() {
-  cd "${_name}-$pkgver"
+  cd $_name-$pkgver
   autoreconf -fiv
 }
 
 build() {
-  cd "${_name}-$pkgver"
+  # -flto=auto is not supported: https://github.com/alsa-project/alsa-lib/issues/110
+  CFLAGS+=" -flto-partition=none"
 
   export CC='gcc -m32'
   export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
 
-  ./configure --prefix=/usr \
-              --libdir=/usr/lib32 \
-              --without-debug \
-              --disable-python
+  cd $_name-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
+    --without-debug \
+    --disable-python
   # prevent excessive overlinking due to libtool
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
@@ -39,13 +43,11 @@
 }
 
 check() {
-  cd "${_name}-$pkgver"
   export LD_LIBRARY_PATH="${PWD}/src/.libs/:${LD_LIBRARY_PATH}"
-  make -k check
+  make -k check -C $_name-$pkgver
 }
 
 package() {
-  cd "${_name}-$pkgver"
-  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install -C $_name-$pkgver
   rm -r "$pkgdir"/usr/{bin,include,share}
 }



More information about the arch-commits mailing list