aboutsummaryrefslogtreecommitdiffstats
path: root/main/xdriinfo
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-15 10:19:04 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-15 10:19:26 +0000
commit9b3c0f5f8c2a343b781654f52f74dd5fe583da4d (patch)
tree6d17f357e126738040629e5cb82e2c6b806f2102 /main/xdriinfo
parent73929b8e73992a27d123ece9cc94e6a2b3265457 (diff)
downloadaports-9b3c0f5f8c2a343b781654f52f74dd5fe583da4d.tar.bz2
aports-9b3c0f5f8c2a343b781654f52f74dd5fe583da4d.tar.xz
main/[various]: update config.sub
Diffstat (limited to 'main/xdriinfo')
-rw-r--r--main/xdriinfo/APKBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/main/xdriinfo/APKBUILD b/main/xdriinfo/APKBUILD
index a28c0ebae7..4414cefd19 100644
--- a/main/xdriinfo/APKBUILD
+++ b/main/xdriinfo/APKBUILD
@@ -10,9 +10,16 @@ subpackages="$pkgname-doc"
makedepends="pkgconfig libx11-dev glproto mesa-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
}