[arch-commits] Commit in lib32-alsa-oss/repos/multilib-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Wed Dec 29 12:54:51 UTC 2021


    Date: Wednesday, December 29, 2021 @ 12:54:51
  Author: dvzrv
Revision: 1087107

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-alsa-oss/repos/multilib-x86_64/PKGBUILD
    (from rev 1087106, lib32-alsa-oss/trunk/PKGBUILD)
Deleted:
  lib32-alsa-oss/repos/multilib-x86_64/PKGBUILD

----------+
 PKGBUILD |   86 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 47 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-29 12:54:42 UTC (rev 1087106)
+++ PKGBUILD	2021-12-29 12:54:51 UTC (rev 1087107)
@@ -1,39 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: judd <jvinet at zeroflux.org>
-
-_name=alsa-oss
-pkgname=lib32-alsa-oss
-pkgver=1.1.8
-pkgrel=2
-pkgdesc="OSS compatibility library (32 bit)"
-arch=('x86_64')
-license=('GPL2')
-url="https://www.alsa-project.org"
-depends=('lib32-glibc' 'alsa-oss')
-makedepends=('lib32-alsa-lib')
-provides=('libaoss.so' 'libalsatoss.so')
-source=("https://www.alsa-project.org/files/pub/oss-lib/${_name}-$pkgver.tar.bz2")
-sha512sums=('42966af0ca1be33b4ab1e20b2e3320056ad6caf6ecc5ecde3ae19571809a2fa924dd91d9b2a5d5b6f345b29d937b079400d2a165dbe2b8a33b857cd406c4ac7c')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  autoreconf -vfi
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  export CC='gcc -m32'
-  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
-  ./configure --prefix=/usr \
-              --libdir=/usr/lib32
-  make
-}
-
-package() {
-  depends+=('libasound.so')
-  cd "$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-  # Clean up lib32 package
-  rm -rvf "$pkgdir"/usr/{bin,include,share}
-}

Copied: lib32-alsa-oss/repos/multilib-x86_64/PKGBUILD (from rev 1087106, lib32-alsa-oss/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-29 12:54:51 UTC (rev 1087107)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+_name=alsa-oss
+pkgname=lib32-alsa-oss
+pkgver=1.1.8
+pkgrel=3
+pkgdesc="OSS compatibility library (32 bit)"
+arch=(x86_64)
+url="https://www.alsa-project.org"
+license=(GPL2)
+depends=(lib32-glibc alsa-oss=$pkgver)
+makedepends=(lib32-alsa-lib)
+provides=(libaoss.so libalsatoss.so)
+source=("https://www.alsa-project.org/files/pub/oss-lib/${_name}-$pkgver.tar.bz2"{,.sig})
+sha512sums=('42966af0ca1be33b4ab1e20b2e3320056ad6caf6ecc5ecde3ae19571809a2fa924dd91d9b2a5d5b6f345b29d937b079400d2a165dbe2b8a33b857cd406c4ac7c'
+            'SKIP')
+b2sums=('47124c4edd14878b202e6ff6866b5441ffa0991ac3011a3db1efcd1dd2a0c27c9f2b8b38c2a51e8b46cb5714a97393a462154cdfaf89f1238244f7b2635a7740'
+        'SKIP')
+validpgpkeys=(F04DF50737AC1A884C4B3D718380596DA6E59C91)  # ALSA Release Team (Package Signing Key v1) <release at alsa-project.org>
+
+prepare() {
+  cd "${_name}-$pkgver"
+  autoreconf -fiv
+}
+
+build() {
+  export CC='gcc -m32'
+  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
+  # prevent static lib mangling with LTO
+  CFLAGS+=" -ffat-lto-objects"
+
+  cd "${_name}-$pkgver"
+  ./configure --prefix=/usr \
+              --libdir=/usr/lib32
+  # prevent excessive overlinking due to libtool
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package() {
+  depends+=(libasound.so)
+
+  make DESTDIR="$pkgdir" install -C "${_name}-$pkgver"
+  # Clean up lib32 package
+  rm -rvf "$pkgdir"/usr/{bin,include,share}
+}



More information about the arch-commits mailing list