summaryrefslogtreecommitdiff
path: root/user/alsa-utils/APKBUILD
blob: d4afb47ea8bee0fc486a1a78c84f24ce3dff10b2 (plain) (blame)
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
54
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=alsa-utils
pkgver=1.1.6
pkgrel=0
pkgdesc="Advanced Linux Sound Architecture (ALSA) utilities"
url="http://www.alsa-project.org"
arch="all"
options="!check"  # No test suite, applets use ncurses / don't have --version
license="GPL-2.0+"
makedepends="alsa-lib-dev fftw-dev ncurses-dev pciutils-dev"
depends="dialog"
subpackages="$pkgname-doc alsaconf::noarch $pkgname-dbg $pkgname-openrc"
source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2
	alsaconf.patch
	alsa.initd
	alsa.confd"

prepare() {
	update_config_sub
	default_prepare
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-xmlto \
		--disable-nls
	make
}

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() {
	depends="alsa-utils bash"
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/sbin
	mv "$pkgdir"/usr/sbin/alsaconf \
		"$subpkgdir"/usr/sbin
}

sha512sums="24d0ffaeeccecb3276d7d35ef51e6de6026a63fa5a1a1e4605b024f54d8097717e97ec9d33cfe50830ad17e4a89268ca24b065039b0df7f9fbe02b570617aa58  alsa-utils-1.1.6.tar.bz2
817215be6e9f103a8a187df5b1142c4d2e952f547a64579a9b8cfa58bd762d6a55bde75c0f66f018c0597744d07ccdb08216f7b368db464e36667cecedcc00f3  alsaconf.patch
8a52e6363d5dcfb16e1e607e1af3e46a2148989689e5ab04caf05f84dc68b34cc003b1cf0945ce2c3670cc7f3ef0e40824f689f1efa2d09177c82b13571a7168  alsa.initd
6e716e6230fd3d2c33e3cb2dbf572d632c9ac6452c1768388bea7d3ca22f7c72cf6bcd702580f45cb9089983582011c8b04cbdb4420d14fb988167b1391ea547  alsa.confd"