mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 17:17:21 +08:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=alsa-utils
|
|
pkgver=1.0.26
|
|
pkgrel=1
|
|
pkgdesc="An alternative implementation of Linux sound support"
|
|
arch=('x86_64')
|
|
url="http://www.alsa-project.org"
|
|
#can not use >=$pkgver due to use of letters in alsa-lib update versioning
|
|
depends=("alsa-lib" 'dialog' 'pciutils' 'ncurses' 'psmisc' 'libsamplerate')
|
|
makedepends=('xmlto' 'docbook-xsl')
|
|
license=('GPL')
|
|
source=("ftp://ftp.alsa-project.org/pub/utils/$pkgname-${pkgver}.tar.bz2"
|
|
'alsa.conf.d'
|
|
'90alsa')
|
|
md5sums=('4dcf1017fafc91603af96705c073eca9'
|
|
'4c8ae9f976c7df5e271a4cb91ccc7767'
|
|
'529216f6a46e61a546640e08ea7a0879')
|
|
backup=(etc/conf.d/alsa)
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr --disable-alsaconf \
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
install -D -m644 ../alsa.conf.d ${pkgdir}/etc/conf.d/alsa
|
|
install -D -m755 ../90alsa ${pkgdir}/etc/pm/sleep.d/90alsa
|
|
# dir where to save ALSA state
|
|
install -d ${pkgdir}/var/lib/alsa
|
|
}
|
|
|