blob: d7263e6aec20034ade9cf7b19c765138d308dc94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-utils
pkgver=1.0.23
pkgrel=3
pkgdesc="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
url="http://www.alsa-project.org"
arch="all"
license="GPL"
makedepends="alsa-lib-dev pciutils-dev ncurses-dev"
depends="dialog"
subpackages="$pkgname-doc alsaconf"
source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2
alsaconf.patch
alsa.initd
alsa.confd
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# patch -Np1 -i ../alsaconf.patch || return 1
return 0
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--disable-xmlto \
--disable-nls \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa
install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa
}
alsaconf() {
arch="noarch"
depends="alsa-utils bash"
cd "$_builddir"
install -D -m755 alsaconf/alsaconf "$subpkgdir"/usr/bin/alsaconf
}
md5sums="cb0cf46029ac9549cf3a31bff6a4f4e1 alsa-utils-1.0.23.tar.bz2
5e65f278b5a77e3ee2821ad955c4cd91 alsaconf.patch
219cd8b7b3e250895550b1d60cfc219f alsa.initd
85b1f1e759fe5953eca329237f4ac256 alsa.confd"
|