aboutsummaryrefslogtreecommitdiffstats
path: root/community/sbc
diff options
context:
space:
mode:
authorMark Riedesel <mark@klowner.com>2016-08-29 15:12:24 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-09 09:35:58 +0000
commitab804283d10d3525f99967ed8112d318f3ddc906 (patch)
treee46b680d2c6cf174b89ddaabc047b3bd8e7117aa /community/sbc
parentb0eebf2e46e2b51b966836c297e80b8896930fae (diff)
downloadaports-ab804283d10d3525f99967ed8112d318f3ddc906.tar.bz2
aports-ab804283d10d3525f99967ed8112d318f3ddc906.tar.xz
community/sbc: move from unmaintained
Diffstat (limited to 'community/sbc')
-rw-r--r--community/sbc/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/community/sbc/APKBUILD b/community/sbc/APKBUILD
new file mode 100644
index 0000000000..f0207d510b
--- /dev/null
+++ b/community/sbc/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Mark Riedesel <mark@klowner.com>
+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"/$pkgname-$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"