# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=libfreeaptx
pkgver=0.2.2
pkgrel=0
pkgdesc="Free implementation of Audio Processing Technology codec (aptX)"
url="https://github.com/iamthehorker/libfreeaptx"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev $pkgname-tools"
source="https://github.com/iamthehorker/libfreeaptx/archive/$pkgver/libfreeaptx-$pkgver.tar.gz"
options="!check" # No testsuite

build() {
	make CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

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

tools() {
	pkgdesc="$pkgdesc (commandline utils)"
	depends=""
	amove usr/bin
}

sha512sums="
b3f2cc449da0269971f5be4bb0c027ba5e6630405abb8c67f4d9d4b651332d1ae184271e3830c661d9b165624460a15c1b678dbab81212e2f507e4f2e63194a8  libfreeaptx-0.2.2.tar.gz
"
