aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk-vnc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gtk-vnc/APKBUILD')
-rw-r--r--main/gtk-vnc/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/gtk-vnc/APKBUILD b/main/gtk-vnc/APKBUILD
index 0304bda523..498f25f8b8 100644
--- a/main/gtk-vnc/APKBUILD
+++ b/main/gtk-vnc/APKBUILD
@@ -13,8 +13,15 @@ makedepends="$depends_dev libiconv-dev gettext-dev intltool expat-dev
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build () {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -28,7 +35,7 @@ build () {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la
}