summaryrefslogtreecommitdiff
path: root/user/sbc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-11 18:57:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-11 18:57:57 -0500
commit8417b18e7da1eea7a323e2abd0863d4cccfa2417 (patch)
tree3605429fac55effd31e5e64f8cc60f9da7d79cf7 /user/sbc
parent1de8717d62439bac6ec549b9b1d86cc6ae35ef2e (diff)
downloadpackages-8417b18e7da1eea7a323e2abd0863d4cccfa2417.tar.gz
packages-8417b18e7da1eea7a323e2abd0863d4cccfa2417.tar.bz2
packages-8417b18e7da1eea7a323e2abd0863d4cccfa2417.tar.xz
packages-8417b18e7da1eea7a323e2abd0863d4cccfa2417.zip
user/sbc: pull in, fix up
Diffstat (limited to 'user/sbc')
-rw-r--r--user/sbc/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/user/sbc/APKBUILD b/user/sbc/APKBUILD
new file mode 100644
index 000000000..b72f31a89
--- /dev/null
+++ b/user/sbc/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=sbc
+pkgver=1.3
+pkgrel=0
+pkgdesc="Bluetooth audio codec library"
+url="http://www.bluez.org/"
+arch="all"
+options="!check" # No tests.
+license="LGPL"
+depends=""
+depends_dev="libsndfile-dev"
+makedepends="$depends_dev linux-headers"
+subpackages="$pkgname-dev $pkgname-utils"
+source="https://www.kernel.org/pub/linux/bluetooth/sbc-$pkgver.tar.xz"
+
+prepare() {
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+utils() {
+ pkgdesc="Bluetooth audio utilities"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin \
+ "$subpkgdir"/usr/
+}
+
+sha512sums="c11cb1ede8abdb226d404ce34307d217b716b91cbe550ed90cb5387b062b7b97a6b7a81371de6f462d8c1429cb3299869a1bda347fa175e9d81cfa2bc2056c8b sbc-1.3.tar.xz"