aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcmiscproto/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xcmiscproto/APKBUILD')
-rw-r--r--main/xcmiscproto/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/xcmiscproto/APKBUILD b/main/xcmiscproto/APKBUILD
index 3f7edb9a5b..8041de116d 100644
--- a/main/xcmiscproto/APKBUILD
+++ b/main/xcmiscproto/APKBUILD
@@ -10,8 +10,15 @@ depends=""
makedepends=""
source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+_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
}
md5sums="5f4847c78e41b801982c8a5e06365b24 xcmiscproto-1.2.2.tar.bz2"