aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86dgaproto
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-02 18:37:03 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-02 18:37:03 +0000
commit84bae70a2cba7ff39657d52361876b83f0e0af36 (patch)
treeda5d9c0312bcb7e1542660bf385e41ef7fc9e92c /main/xf86dgaproto
parent5e53e9d767d907b8df81fb8019dd9fdf278704db (diff)
downloadaports-84bae70a2cba7ff39657d52361876b83f0e0af36.tar.bz2
aports-84bae70a2cba7ff39657d52361876b83f0e0af36.tar.xz
main/[various]: update config.sub
Diffstat (limited to 'main/xf86dgaproto')
-rw-r--r--main/xf86dgaproto/APKBUILD20
1 files changed, 15 insertions, 5 deletions
diff --git a/main/xf86dgaproto/APKBUILD b/main/xf86dgaproto/APKBUILD
index 927b216e2f..44769340d8 100644
--- a/main/xf86dgaproto/APKBUILD
+++ b/main/xf86dgaproto/APKBUILD
@@ -1,24 +1,34 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86dgaproto
pkgver=2.1
-pkgrel=1
+pkgrel=2
pkgdesc="X11 Direct Graphics Access extension wire protocol"
url="http://xorg.freedesktop.org/"
-arch="all"
+arch="noarch"
license="custom"
depends=""
makedepends=""
source="http://xorg.freedesktop.org/releases/individual/proto/$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 \
--prefix=/usr \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="a036dc2fcbf052ec10621fd48b68dbb1 xf86dgaproto-2.1.tar.bz2"