summaryrefslogtreecommitdiff
path: root/repo/sbc/sbc.xibuild
blob: 39e618f28a22aabd109b0595d319b4ad45885ac0 (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
#!/bin/sh

NAME="sbc"
DESC="Bluetooth Subband Codec (SBC) library"

MAKEDEPS="libsndfile linux-headers flac libvorbis libogg opus"

PKG_VER=1.5
SOURCE="https://www.kernel.org/pub/linux/bluetooth/sbc-$PKG_VER.tar.xz"

ADDITIONAL="
fix-build-on-non-x86.patch
"
prepare () {
    apply_patches
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
}