aboutsummaryrefslogtreecommitdiffstats
path: root/main/xdpyinfo/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xdpyinfo/APKBUILD')
-rw-r--r--main/xdpyinfo/APKBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/main/xdpyinfo/APKBUILD b/main/xdpyinfo/APKBUILD
index 5e57ff0d96..516dfae42d 100644
--- a/main/xdpyinfo/APKBUILD
+++ b/main/xdpyinfo/APKBUILD
@@ -10,9 +10,16 @@ subpackages="$pkgname-doc"
makedepends="pkgconfig libxtst-dev"
depends=
source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
-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 \
@@ -20,6 +27,10 @@ build ()
--mandir=/usr/share/man \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}