diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-05 19:15:35 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-19 10:53:39 +0000 |
commit | 7dd8fdf63a036991c1d9aa7f3d5ccce0f2041205 (patch) | |
tree | 4ead4da8ce42e324cfa127126d21c92b0cad3a57 /main/libxt/APKBUILD | |
parent | c140c5b210f10c49112ca5df63b1ececeb6da9f7 (diff) | |
download | aports-7dd8fdf63a036991c1d9aa7f3d5ccce0f2041205.tar.bz2 aports-7dd8fdf63a036991c1d9aa7f3d5ccce0f2041205.tar.xz |
main/libxt: modernise, fix deps, add test suite
Diffstat (limited to 'main/libxt/APKBUILD')
-rw-r--r-- | main/libxt/APKBUILD | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/main/libxt/APKBUILD b/main/libxt/APKBUILD index 967351dfdd..58d5ae5eab 100644 --- a/main/libxt/APKBUILD +++ b/main/libxt/APKBUILD @@ -1,43 +1,39 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libxt pkgver=1.1.5 -pkgrel=0 +pkgrel=1 pkgdesc="X11 toolkit intrinsics library" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-dev $pkgname-doc" depends= -depends_dev="xproto libx11-dev libsm-dev" -makedepends="$depends_dev libice-dev e2fsprogs-dev" +depends_dev="libsm-dev" +makedepends="$depends_dev libice-dev libx11-dev util-macros xproto" +checkdepends="glib-dev" source="http://www.x.org/releases/individual/lib/libXt-$pkgver.tar.bz2 " -_builddir="$srcdir"/libXt-$pkgver -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - +builddir="$srcdir"/libXt-$pkgver -build () { - cd "$_builddir" +build() { + 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 "$_builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install } md5sums="8f5b5576fbabba29a05f3ca2226f74d3 libXt-1.1.5.tar.bz2" sha256sums="46eeb6be780211fdd98c5109286618f6707712235fdd19df4ce1e6954f349f1a libXt-1.1.5.tar.bz2" |