diff options
Diffstat (limited to 'main/flac/APKBUILD')
-rw-r--r-- | main/flac/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/main/flac/APKBUILD b/main/flac/APKBUILD index 7ebcf4dc1..5c3d75fca 100644 --- a/main/flac/APKBUILD +++ b/main/flac/APKBUILD @@ -11,8 +11,15 @@ depends= makedepends="libogg-dev !libiconv" source="http://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} + build () { - cd "$srcdir"/$pkgname-$pkgver || return 1 + cd "$_builddir" ./configure \ --build=$CBUILD \ @@ -30,7 +37,7 @@ build () { } package() { - cd "$srcdir"/$pkgname-$pkgver || return 1 + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la |