aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fdk-aac/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-26 13:55:20 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-26 14:23:21 +0200
commit90dda95fa071063cc6f0f718dc9e04e028e55e07 (patch)
treed00c000458fbed267dbba92e2c3e5a9cc7abe140 /testing/fdk-aac/APKBUILD
parent8931764d3bcc8b6d69a310b6d60652f85fbe73d0 (diff)
downloadaports-90dda95fa071063cc6f0f718dc9e04e028e55e07.tar.bz2
aports-90dda95fa071063cc6f0f718dc9e04e028e55e07.tar.xz
testing/fdk-aac: improve abuild
Diffstat (limited to 'testing/fdk-aac/APKBUILD')
-rw-r--r--testing/fdk-aac/APKBUILD22
1 files changed, 6 insertions, 16 deletions
diff --git a/testing/fdk-aac/APKBUILD b/testing/fdk-aac/APKBUILD
index 120c99bd76..9def721785 100644
--- a/testing/fdk-aac/APKBUILD
+++ b/testing/fdk-aac/APKBUILD
@@ -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