# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=fdk-aac
pkgver=0.1.6
pkgrel=0
pkgdesc="Fraunhofer FDK AAC codec library"
url="https://sourceforge.net/projects/opencore-amr"
arch="all"
license="custom"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="$url/files/$pkgname/$pkgname-$pkgver.tar.gz"
options="!check" # no upstream/available testsuite
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix="/usr" \
		--disable-static
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 NOTICE \
		"${pkgdir}"/usr/share/licenses/libfdk-aac/NOTICE
}

sha512sums="d4d14debeb6e424f4e2a1458ed7bebaa2c45ce54170c6e679286fd965f52286b6a6c1e944edbb4ea2302c3bb789c0f3cdab9c0d89618014ba4250b2f04d71d12  fdk-aac-0.1.6.tar.gz"
