APKBUILD 1.05 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-utils
3
pkgver=1.0.23
Carlo Landmeter's avatar
Carlo Landmeter committed
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
url="http://www.alsa-project.org"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12 13 14 15 16 17
license="GPL"
makedepends="alsa-lib-dev pciutils-dev ncurses-dev"
depends="dialog"
subpackages="$pkgname-doc"
source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2
	alsaconf.patch
	alsa.initd
	alsa.confd
	"

18
prepare() {
Natanael Copa's avatar
Natanael Copa committed
19 20
	cd "$srcdir"/$pkgname-$pkgver
	patch -Np1 -i ../alsaconf.patch || return 1
21 22 23 24
}

build() { 
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
25 26
	./configure --prefix=/usr \
		--disable-xmlto \
27
		--disable-nls \
Natanael Copa's avatar
Natanael Copa committed
28 29 30 31 32 33 34 35 36 37
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa
	install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa
}
38
md5sums="cb0cf46029ac9549cf3a31bff6a4f4e1  alsa-utils-1.0.23.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
39 40 41
5e65f278b5a77e3ee2821ad955c4cd91  alsaconf.patch
4a66dad46d5366e05098cde97f3d37b5  alsa.initd
85b1f1e759fe5953eca329237f4ac256  alsa.confd"