72 lines
2.3 KiB
Bash
72 lines
2.3 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-utils
|
|
pkgver=1.2.11
|
|
pkgrel=01
|
|
pkgdesc="Advanced Linux Sound Architecture - Utilities w/o systemd"
|
|
url="https://www.alsa-project.org"
|
|
depends=(glibc pciutils psmisc)
|
|
makedepends=(alsa-lib docbook-xsl fftw libsamplerate ncurses python-docutils xmlto)
|
|
optdepends=('fftw: for alsabat')
|
|
# we require /var/lib/alsa for state file
|
|
#options=(debug emptydirs) ## uncomment this to have debug pkg produced
|
|
options=(emptydirs)
|
|
source=($url/files/pub/utils/$pkgname-$pkgver.tar.bz2{,.sig}
|
|
$pkgname.tmpfiles)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# prevent excessive overlinking due to libtool
|
|
# something is up with this, libtool can't be found?
|
|
# sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sbindir=/usr/bin \
|
|
--disable-alsaconf \
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
|
--with-systemdsystemunitdir=no
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make -k check -C $pkgname-$pkgver
|
|
}
|
|
|
|
package() {
|
|
depends+=(libasound.so libatopology.so libformw.so libmenuw.so libncursesw.so
|
|
libpanelw.so libsamplerate.so)
|
|
|
|
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
|
|
install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
# dir where to save ALSA state
|
|
install -vdm 755 "$pkgdir/var/lib/alsa/"
|
|
install -vDm 644 $pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
|
|
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL-2.0-or-later)
|
|
|
|
validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
|
|
|
|
sha256sums=(9ac6ca3a883f151e568dcf979b8d2e5cbecc51b819bb0e6bb8a2e9b34cc428a7 # alsa-utils-1.2.11.tar.bz2
|
|
1d00a1369c4fb1a7841a57aa7c9f41a80d289053af0b779164f01a3cc0228885 # alsa-utils-1.2.11.tar.bz2.sig
|
|
18b3aff0e6f60ce701dabf20b74fe481546b153cc81456e43734f814aa04e70b) # alsa-utils.tmpfiles
|
|
|
|
## 3cb679b7e73b12e8c43146d23e53ebf9f888c0a79c473f366bb4ad360540bce8 alsa-utils-1.2.11-01-x86_64.pkg.tar.lz
|