summaryrefslogtreecommitdiffstats
path: root/main/alsa-lib/APKBUILD
blob: 6e7e775f6ab53ee53a6d6bb5f160650c1499124a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-lib
pkgver=1.0.28
pkgrel=0
pkgdesc="An alternative implementation of Linux sound support"
url="http://www.alsa-project.org"
arch="all"
license="LGPL2+"
depends=""
subpackages="$pkgname-dev"
source="http://alsa.cybermirror.org/lib/$pkgname-$pkgver.tar.bz2
	alsa-lib_pcm_h.patch
	alsa-lib_mixed_types.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	rm src/compat/hsearch_r.c && touch src/compat/hsearch_r.c
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-python \
		--disable-static \
		--disable-resmgr \
		--enable-rawmidi \
		--enable-seq \
		--enable-aload \
		--disable-dependency-tracking \
		--without-versioned \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make -j1 DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -iname *.la -delete
}

md5sums="c9e21b88a2b3e6e12ea7ba0f3b271fc3  alsa-lib-1.0.28.tar.bz2
4018a2f02d7c93935b6a8fa0bc3f2191  alsa-lib_pcm_h.patch
d949fb5ff425e70f1896f7231f30469e  alsa-lib_mixed_types.patch"
sha256sums="3c074b85dde1b30e78ef4995579765833e5b693fbbd8f834c335e080cb734a6d  alsa-lib-1.0.28.tar.bz2
faa8efc9b2e5d110d0daffe473c86efcbc6305a7eafd016b1334581db466dbdf  alsa-lib_pcm_h.patch
ac2b77959404ea81d2f1a539c9c0e9e15b5c2c452285712aa10b6f8da8f9eefa  alsa-lib_mixed_types.patch"
sha512sums="a08430d0beb4a751b1608d148f4fc3d1077a689f5f7197b830a2768d66238b69de2614448d56643fbcb3141faa06ab361b7a8579cce4303304bce8c10de01f08  alsa-lib-1.0.28.tar.bz2
0ea37cda27b440c82f0bc0e34f67d423678d348874c18063036e4347f961bbbce4074ed0aaa518d25d0cedd73818e66e1cbc30c6ff4bf9e6479f64012df0199c  alsa-lib_pcm_h.patch
990d83a761958f350749fda57def15c73890afeae4fa303dc6af36c453a723a2c98d3cf8f44344da539e6c3224d96bfa91861e59126ec2a3d97dc4c0f36fbc61  alsa-lib_mixed_types.patch"