main/libX11: add test suite, modernise

This commit is contained in:
A. Wilcox 2017-08-17 04:22:45 +00:00 committed by Natanael Copa
parent 90b1b69a5e
commit 496f92ea52

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libx11
pkgver=1.6.5
pkgrel=0
pkgrel=1
pkgdesc="X11 client-side library"
url="http://xorg.freedesktop.org/"
arch="all"
@ -10,7 +10,7 @@ depends=
subpackages="$pkgname-dev $pkgname-doc"
depends_dev="libxcb-dev xextproto xf86bigfontproto-dev xtrans
inputproto"
makedepends="$depends_dev util-macros xproto kbproto"
makedepends="$depends_dev util-macros xproto kbproto xmlto"
source="http://www.x.org/releases/individual/lib/libX11-$pkgver.tar.bz2"
builddir="$srcdir"/libX11-$pkgver
@ -23,14 +23,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-xcb \
|| return 1
make || return 1
--with-xcb
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}