aboutsummaryrefslogblamecommitdiffstats
path: root/community/sbc/APKBUILD
blob: 3f282790df92ad552072d2389829febcc5738b15 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                                              
           
          
        


                                               
                             
                                                

                                        
                                         
                                                                     

                                   
         






                                           

                                      
            


           
                                      





                                 
                                 

 

                                                                                                                                                             
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Mark Riedesel <mark@klowner.com>
pkgname=sbc
pkgver=1.5
pkgrel=0
pkgdesc="Bluetooth Subband Codec (SBC) library"
url="http://www.bluez.org/"
arch="all"
options="!check"  # No tests.
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
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
	fix-build-on-non-x86.patch"

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

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

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

sha512sums="0243586188acede595317f2afbfdb41be5850d2a6133c374edbe5cbcf59a2a0fd4570d0b8f2d13ce9637ce48b2f1910c3e4ab1c0354dbf273ee67b09db8c4915  sbc-1.5.tar.xz
415e181b928b492b364d08e47e75a92b3b0f0f5a9e4e234b779f917375af4553bc509f5ed0cee66f4793f818f82029b2a88c0febc98ed43aaeb0cf11e3b0ec25  fix-build-on-non-x86.patch"