diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-17 04:03:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-19 10:51:28 +0000 |
commit | 7ee65942380b66ea5807666d26c2e4ddb4215e00 (patch) | |
tree | 6bb89c6e3febe36b98741d5cef8efde944a91569 /main/xproto | |
parent | bd9d4e829aa689ec4b2a53eb73e6c84c6731b11f (diff) | |
download | aports-7ee65942380b66ea5807666d26c2e4ddb4215e00.tar.bz2 aports-7ee65942380b66ea5807666d26c2e4ddb4215e00.tar.xz |
main/xproto: add tests, modernise, add build deps
Diffstat (limited to 'main/xproto')
-rw-r--r-- | main/xproto/APKBUILD | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/main/xproto/APKBUILD b/main/xproto/APKBUILD index 789fa92416..a6153970ad 100644 --- a/main/xproto/APKBUILD +++ b/main/xproto/APKBUILD @@ -1,36 +1,42 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=xproto pkgver=7.0.31 -pkgrel=0 +pkgrel=1 pkgdesc="X11 core wire protocol and auxiliary headers" url="http://xorg.freedesktop.org/" arch="noarch" license="custom" depends="" -makedepends="" +makedepends="util-macros xmlto" # only headers here so no need for subpkgs subpackages="$pkgname-doc" source="http://www.x.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2" -_builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir"/$pkgname-$pkgver prepare() { + cd "$builddir" + default_prepare update_config_sub } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } |