aboutsummaryrefslogtreecommitdiffstats
path: root/main/libsamplerate
diff options
context:
space:
mode:
Diffstat (limited to 'main/libsamplerate')
-rw-r--r--main/libsamplerate/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/libsamplerate/APKBUILD b/main/libsamplerate/APKBUILD
index c8d3e9bfbe..1bb00c0592 100644
--- a/main/libsamplerate/APKBUILD
+++ b/main/libsamplerate/APKBUILD
@@ -10,8 +10,15 @@ license="GPL"
depends=""
source="http://www.mega-nerd.com/SRC/$pkgname-$pkgver.tar.gz"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build () {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -21,7 +28,7 @@ build () {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}