aboutsummaryrefslogtreecommitdiffstats
path: root/main/swfdec/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/swfdec/APKBUILD')
-rw-r--r--main/swfdec/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/swfdec/APKBUILD b/main/swfdec/APKBUILD
index 1d5e6db4c5..0b1d88c8fb 100644
--- a/main/swfdec/APKBUILD
+++ b/main/swfdec/APKBUILD
@@ -14,9 +14,15 @@ depends_dev="glib-dev liboil-dev cairo-dev pango-dev gtk+-dev libsoup-dev
gstreamer-dev gst-plugins-base-dev alsa-lib-dev"
source="http://$pkgname.freedesktop.org/download/$pkgname/0.8/$pkgname-$pkgver.tar.gz"
-build ()
-{
- cd "$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -31,7 +37,7 @@ build ()
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name '*.la' -delete
}