aboutsummaryrefslogtreecommitdiffstats
path: root/main/dri3proto
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-05 19:01:14 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:51:29 +0000
commit036ef8cb633660de0d20132a90dcee3f3d21da72 (patch)
treeb5fea580415dded9562d767d3036eb8773521513 /main/dri3proto
parent186f9c3c79706da7528773faece1b8475432a61a (diff)
downloadaports-036ef8cb633660de0d20132a90dcee3f3d21da72.tar.bz2
aports-036ef8cb633660de0d20132a90dcee3f3d21da72.tar.xz
main/dri3proto: modernise, fix deps, noarch, add -doc, no test
Diffstat (limited to 'main/dri3proto')
-rw-r--r--main/dri3proto/APKBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/main/dri3proto/APKBUILD b/main/dri3proto/APKBUILD
index 6feeac03b4..20372fc44d 100644
--- a/main/dri3proto/APKBUILD
+++ b/main/dri3proto/APKBUILD
@@ -1,34 +1,35 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dri3proto
pkgver=1.0
-pkgrel=1
+pkgrel=2
pkgdesc="X11 DRI 3 protocol"
url="http://xorg.freedesktop.org/"
-arch="all"
+arch="noarch"
license="custom"
+options="!check" # No test suite.
depends=""
-makedepends=""
+makedepends="util-macros"
+subpackages="$pkgname-doc"
source="http://www.x.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
-_builddir="$srcdir"/$pkgname-$pkgver
-
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
+
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="a3d2cbe60a9ca1bf3aea6c93c817fee3 dri3proto-1.0.tar.bz2"
sha256sums="01be49d70200518b9a6b297131f6cc71f4ea2de17436896af153226a774fc074 dri3proto-1.0.tar.bz2"