aboutsummaryrefslogtreecommitdiffstats
path: root/main/alsa-utils/APKBUILD
blob: bc42f2dfbe28e75487bf13c713b4db93c73e4cad (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-utils
pkgver=1.2.1
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-or-later"
makedepends="alsa-lib-dev fftw-dev ncurses-dev pciutils-dev xmlto"
depends="dialog"
subpackages="$pkgname-doc alsaconf::noarch $pkgname-dbg $pkgname-openrc"
source="ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$pkgver.tar.bz2
	alsaconf.patch
	alsa.initd
	alsa.confd
	"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--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="b7729659cd9809197dc30042f522f5103ff41ddc047f13f9c733c93f7e91a26f90cd864c70e654d12ef7a552b1d9ebe2727a24ec9fad03560cb7cdea906662ec  alsa-utils-1.2.1.tar.bz2
f04155e1e391c7f36d44422c8e769bf9370117f6bbea6c0664e9858f7a676cc958e4260e4b4d226e71d0716f6be4e6fdd60f1d07cb7e9922fff378ceec01c47d  alsaconf.patch
65f3530df01a2157003df9df4cb5b2c7a258257e8121786383610eb2872ffb5e8c88d070792ad74133a21c5fa54bac5047af4dcccb1854b456d2eeb8f0689076  alsa.initd
6e716e6230fd3d2c33e3cb2dbf572d632c9ac6452c1768388bea7d3ca22f7c72cf6bcd702580f45cb9089983582011c8b04cbdb4420d14fb988167b1391ea547  alsa.confd"