aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86dgaproto/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xf86dgaproto/APKBUILD')
-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"