2020-12-08 22:20:18 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2018-07-28 18:58:09 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - configure with --enable-high-precision for v6/v7 to fix stack corruption
|
2018-08-24 13:06:52 +00:00
|
|
|
# - patch to fix enabling high precision
|
2020-12-08 22:20:18 +00:00
|
|
|
# - patch to fix FTBFS on ARM
|
2018-07-28 18:58:09 +00:00
|
|
|
|
|
|
|
pkgname=sbc
|
2020-12-08 22:20:18 +00:00
|
|
|
pkgver=1.5
|
|
|
|
pkgrel=1
|
2018-07-28 18:58:09 +00:00
|
|
|
pkgdesc="Bluetooth Subband Codec (SBC) library"
|
|
|
|
url="http://www.bluez.org/"
|
2018-10-19 12:52:41 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL LGPL)
|
|
|
|
depends=(glibc)
|
2020-12-08 22:20:18 +00:00
|
|
|
makedepends=(git)
|
|
|
|
_commit=b2c20a3ecf5ed00f63c94077a9762b505935ede9 # tags/1.5^0
|
|
|
|
source=("git+https://git.kernel.org/pub/scm/bluetooth/sbc.git#commit=$_commit"
|
|
|
|
0001-Add-config.h-in-sbc-sbc_primitives.h.patch
|
|
|
|
0002-Fix-build-on-ARM.patch)
|
|
|
|
sha512sums=('SKIP'
|
|
|
|
'5daaffdf735b6fa8d3526b02cccbb378aa91c72a6f093824164d335f80a72448285835666226ef5fcecc2fc802b1bf44cb34356bfe4e90b944a5b128373a9f52'
|
|
|
|
'ffe8736c3efb51833eddd983a23ca924c2bf6071f59ff391e253c184469995a399d762ee05e826fb8a83f697c5698e8551e779c3d86a23238647df304a0d43f1')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --tags | sed 's/-/+/g'
|
|
|
|
}
|
2018-08-24 13:06:52 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-12-08 22:20:18 +00:00
|
|
|
cd $pkgname
|
2018-08-24 13:06:52 +00:00
|
|
|
patch -p1 -i ../0001-Add-config.h-in-sbc-sbc_primitives.h.patch
|
2020-12-08 22:20:18 +00:00
|
|
|
patch -p1 -i ../0002-Fix-build-on-ARM.patch
|
|
|
|
autoreconf -fvi
|
2018-08-24 13:06:52 +00:00
|
|
|
}
|
2018-07-28 18:58:09 +00:00
|
|
|
|
|
|
|
build() {
|
2020-12-08 22:20:18 +00:00
|
|
|
cd $pkgname
|
2018-07-28 18:58:09 +00:00
|
|
|
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && CONFIG="--enable-high-precision"
|
|
|
|
./configure --prefix=/usr --disable-static --disable-tester $CONFIG
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2020-12-08 22:20:18 +00:00
|
|
|
check() {
|
|
|
|
cd $pkgname
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
2018-07-28 18:58:09 +00:00
|
|
|
package() {
|
2020-12-08 22:20:18 +00:00
|
|
|
cd $pkgname
|
2018-07-28 18:58:09 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|