aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-17 04:09:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:53:39 +0000
commit8d2ea1b5d6596c1c85246e63ef7a5992dbc8e940 (patch)
tree9115c69a9cd1e4c610ed6a57be82e42d6ec79a23
parent496f92ea52207cdbe97d32302997cbe2c69f2ace (diff)
downloadaports-8d2ea1b5d6596c1c85246e63ef7a5992dbc8e940.tar.gz
aports-8d2ea1b5d6596c1c85246e63ef7a5992dbc8e940.tar.bz2
aports-8d2ea1b5d6596c1c85246e63ef7a5992dbc8e940.tar.xz
main/libXau: add tests, modernise
-rw-r--r--main/libxau/APKBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/main/libxau/APKBUILD b/main/libxau/APKBUILD
index aa73707100..e6e450f6d4 100644
--- a/main/libxau/APKBUILD
+++ b/main/libxau/APKBUILD
@@ -1,33 +1,38 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxau
pkgver=1.0.8
-pkgrel=1
+pkgrel=2
pkgdesc="X11 authorisation library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
depends=
-makedepends="xproto"
+makedepends="xproto util-macros"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.x.org/releases/individual/lib/libXau-$pkgver.tar.bz2"
+builddir="$srcdir"/libXau-$pkgver
+
build() {
- cd "$srcdir"/libXau-$pkgver
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --sysconfdir=/etc \
- || return 1
- make || return 1
+ --sysconfdir=/etc
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$srcdir"/libXau-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
- install -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING || return 1
+ install -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="685f8abbffa6d145c0f930f00703b21b libXau-1.0.8.tar.bz2"
-sha256sums="fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2 libXau-1.0.8.tar.bz2"
+
sha512sums="9f933d22f8f2411ae770094589cbe170c631a1437d572664e0fa6b9608e6ec39deef752f2dd6408ab45acdf01bf1827ef3ced640a33da787d9cfb546f12397b5 libXau-1.0.8.tar.bz2"