aboutsummaryrefslogtreecommitdiffstats
path: root/main/alsa-utils/APKBUILD
blob: 73c36ea407258fa8ec92f17aafa814ec71ab0cb5 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-utils
pkgver=1.1.0
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 fftw-dev"
depends="dialog"
subpackages="$pkgname-doc alsaconf $pkgname-dbg"
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"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	return 0
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--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"
	mkdir -p "$subpkgdir"/usr/sbin
	mv "$pkgdir"/usr/sbin/alsaconf \
		"$subpkgdir"/usr/sbin || return 1
}

md5sums="b9d6102fbbd0b68040bb77023ed30c0c  alsa-utils-1.1.0.tar.bz2
5e65f278b5a77e3ee2821ad955c4cd91  alsaconf.patch
e67a407b22eee4e7c7132cd417ce51cf  alsa.initd
415adf8d230c3ac9871b16d8ab176193  alsa.confd"
sha256sums="3b1c3135b76e14532d3dd23fb15759ddd7daf9ffbc183f7a9a0a3a86374748f1  alsa-utils-1.1.0.tar.bz2
b99468473fe20de4fac3aeae833612837ff1cb576e68674463fe1efd0aed6d19  alsaconf.patch
3d880247df95867f36d5d37949f81e5bd11eb422af29631e9a9489b7cb6bd6bf  alsa.initd
a3383d2aa7af1b2725c1167f1f6d5f86505de653fed3c2b8cc8fb3fd5c0d4c5c  alsa.confd"
sha512sums="c61f056959feba015bb4a6f49980c4beb6a0c34be09e7196864583897ea86373b593a8807999a07df9c87a3a0c714075b9aae516752e83a946d0d60bc8f90f98  alsa-utils-1.1.0.tar.bz2
bc9f1297574fe4d5bd9baa3f299d68684182f1e6eeb51c862cd6236563516f57a160a00d6607540830aebbb8c4352faf416a981edc878e8a256cbbcc95648614  alsaconf.patch
8a52e6363d5dcfb16e1e607e1af3e46a2148989689e5ab04caf05f84dc68b34cc003b1cf0945ce2c3670cc7f3ef0e40824f689f1efa2d09177c82b13571a7168  alsa.initd
6e716e6230fd3d2c33e3cb2dbf572d632c9ac6452c1768388bea7d3ca22f7c72cf6bcd702580f45cb9089983582011c8b04cbdb4420d14fb988167b1391ea547  alsa.confd"