aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/sbc/APKBUILD
blob: 87916aef4a905481d11d4a323d9826ecccae3821 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=sbc
pkgver=1.3
pkgrel=0
pkgdesc="Bluetooth Subband Codec (SBC) library"
url="http://www.bluez.org/"
arch="all"
license="LGPL"
depends=""
depends_dev="libsndfile-dev"
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-utils"
source="http://www.kernel.org/pub/linux/bluetooth/sbc-$pkgver.tar.xz"

_builddir="$srcdir"/sbc-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

utils() {
	pkgdesc="sbc utilities"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin \
		"$subpkgdir"/usr/ || return 1
}

md5sums="2d8b7841f2c11ab287718d562f2b981c  sbc-1.3.tar.xz"
sha256sums="e61022cf576f14190241e7071753fdacdce5d1dea89ffd704110fc50be689309  sbc-1.3.tar.xz"
sha512sums="c11cb1ede8abdb226d404ce34307d217b716b91cbe550ed90cb5387b062b7b97a6b7a81371de6f462d8c1429cb3299869a1bda347fa175e9d81cfa2bc2056c8b  sbc-1.3.tar.xz"