65 lines
2.6 KiB
Bash
65 lines
2.6 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=alsa-lib
|
|
pkgver=1.2.10
|
|
pkgrel=02
|
|
pkgdesc="An alternative implementation of Linux sound support"
|
|
url="https://www.alsa-project.org"
|
|
depends=(glibc alsa-topology-conf alsa-ucm-conf)
|
|
provides=(libasound.so libatopology.so)
|
|
install=$pkgname.install
|
|
# options=(debug) ## uncomment this like to have the debug pkg produced
|
|
source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig}
|
|
$pkgname-1.2.10-config_header.patch::https://github.com/alsa-project/alsa-lib/commit/0e3dfb9f705ca78be34cd70fd59d67c431e29cc7.patch)
|
|
|
|
prepare() {
|
|
# fix crashes with 32bit applications: https://bugs.archlinux.org/task/79628
|
|
patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.2.10-config_header.patch
|
|
cd $pkgname-$pkgver
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
# -flto=auto is not supported: https://github.com/alsa-project/alsa-lib/issues/110
|
|
CFLAGS+=" -flto-partition=none"
|
|
cd $pkgname-$pkgver
|
|
./configure \
|
|
--prefix=/usr \
|
|
--without-debug
|
|
# prevent excessive overlinking due to libtool
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export LD_LIBRARY_PATH="$pkgname-$pkgver/src/.libs/:$LD_LIBRARY_PATH"
|
|
make -k check -C $pkgname-$pkgver
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
|
|
install -vDm 644 $pkgname-$pkgver/{MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(LGPL-2.1-or-later)
|
|
|
|
validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
|
|
|
|
sha512sums=('4ccbd1dc5a612044571c26290923009e4c3f7959b30a5d0bed47daa68bbefaff9059c4f0fa3bc16f22c1eed2d36f079139369f40243da5921ae4de02a4541939'
|
|
'SKIP'
|
|
'4c10050fb92da9c61e08eb742b60245314362bf8b7f5c34d5edade2f0bcaa0930c1d30267db0a95de2391c01a4aa59f5565423a1c41e42471f3dc9614b4d9b8a')
|
|
|
|
sha256sums=(c86a45a846331b1b0aa6e6be100be2a7aef92efd405cf6bac7eef8174baa920e # alsa-lib-1.2.10.tar.bz2
|
|
7f9fb8f03e77763369038f2cdc4d238daffbe90f180e5499017fe93c0977e597 # alsa-lib-1.2.10.tar.bz2.sig
|
|
06cf3f6fced106ba9f4e612fa3d49d3272f5d3a5bb9c95c1c613574c8a285263) # alsa-lib-1.2.10-config_header.patch
|
|
|
|
## 61e8ecb26844173ccc0686ec11a880d9911019f774179c3c44d99a4d1fe91013 alsa-lib-1.2.10-02-x86_64.pkg.tar.lz
|