Commit 90dda95f authored by Jakub Jirutka's avatar Jakub Jirutka

testing/fdk-aac: improve abuild

parent 8931764d
......@@ -8,25 +8,14 @@ url="https://sourceforge.net/projects/opencore-amr/"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev automake autoconf libtool"
install=""
makedepends="automake autoconf libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="fdk-aac-$pkgver.tar.gz::https://github.com/mstorsjo/fdk-aac/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/fdk-aac-$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
}
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
cd "$builddir"
./autogen.sh || return 1
./configure \
--prefix="/usr" \
......@@ -36,7 +25,8 @@ build() {
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 NOTICE \
"${pkgdir}"/usr/share/licenses/libfdk-aac/NOTICE || return 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment