diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-17 02:40:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-19 10:51:28 +0000 |
commit | 04aed8698d5b87398077179046f0156a5932e13b (patch) | |
tree | 3c853450845eb384c3ba1020f624a309d643298a | |
parent | f7ac50c60c44af525fe97e81bee770506483cf99 (diff) | |
download | aports-04aed8698d5b87398077179046f0156a5932e13b.tar.bz2 aports-04aed8698d5b87398077179046f0156a5932e13b.tar.xz |
main/xextproto: add tests, modernise, add docs
-rw-r--r-- | main/xextproto/APKBUILD | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/main/xextproto/APKBUILD b/main/xextproto/APKBUILD index b276341abe..e1e6670384 100644 --- a/main/xextproto/APKBUILD +++ b/main/xextproto/APKBUILD @@ -1,35 +1,39 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=xextproto pkgver=7.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="X11 various extension wire protocol" url="http://xorg.freedesktop.org/" arch="noarch" license="custom" depends="" -makedepends="" +makedepends="util-macros xmlto" +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" + 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 "$srcdir"/$pkgname-$pkgver - make -j1 DESTDIR=""$pkgdir"" install || return 1 + cd "$builddir" + make -j1 DESTDIR=""$pkgdir"" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="70c90f313b4b0851758ef77b95019584 xextproto-7.3.0.tar.bz2" |