summaryrefslogtreecommitdiff
path: root/user/alsa-lib/APKBUILD
blob: 2071b794a032b02b52811b11fde6b4406e11522f (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
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=alsa-lib
pkgver=1.2.6.1
pkgrel=0
pkgdesc="Linux sound support system"
url="https://www.alsa-project.org/wiki/Main_Page"
arch="all"
license="LGPL-2.0+"
depends=""
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-dbg"
source="https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2
	remove-test.patch
	type_compat.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-python \
		--disable-static \
		--disable-resmgr \
		--enable-rawmidi \
		--enable-seq \
		--enable-aload \
		--disable-dependency-tracking \
		--without-versioned
	rm -rf "$builddir"/include/sound
	mkdir "$builddir"/include/sound
	printf "all:\ncheck:\ninstall:\n" > "$builddir"/include/sound/Makefile

	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="70e539cf092b5d43e00e4134d8a3e184f0dc34312823e4b58a574320cbf06cb7369bc3251ecb1858033756a7a8c35d36faa8da48d49f6efe0cec905784adbd45  alsa-lib-1.2.6.1.tar.bz2
0ce3c2b8a0a70e2dffb6d633b95c4aae74504cd694fe1507cbc409d931b5f733935b22de45e4adcf5a507587c9f80c60a6f0e798aac2ca2fbf0cbcdef0080079  remove-test.patch
bdcfa3d5fcc055fb6732922679e21689fc2ac19462fe7b72d16862c98ef8c995c3dd5becc4987ba417068e6b0e561bec7e6284d5f0a414e2966c8e00ac304fa8  type_compat.patch"