diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-05 18:47:40 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-07 08:14:11 +0000 |
commit | 49d735b2711fd5efdc3ddc4f4ffdaf8c8a234d14 (patch) | |
tree | 40994a260c5fea2e2c479522a23a817f454006a6 | |
parent | dc5066268343578ac84830dd24665160121758cf (diff) | |
download | aports-49d735b2711fd5efdc3ddc4f4ffdaf8c8a234d14.tar.bz2 aports-49d735b2711fd5efdc3ddc4f4ffdaf8c8a234d14.tar.xz |
main/giblib: modernise, add check
-rw-r--r-- | main/giblib/APKBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/main/giblib/APKBUILD b/main/giblib/APKBUILD index 34aabf5238..63cf72b663 100644 --- a/main/giblib/APKBUILD +++ b/main/giblib/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=giblib pkgver=1.2.4 -pkgrel=8 +pkgrel=9 pkgdesc="Giblib is a library that feh uses as a wrapper to imlib2" url="http://linuxbrit.co.uk/giblib/" arch="all" @@ -12,26 +12,30 @@ makedepends="imlib2-dev libxext-dev libx11-dev freetype-dev zlib-dev" source="http://dev.alpinelinux.org/archive/giblib/giblib-$pkgver.tar.gz" depends_dev="imlib2-dev freetype-dev zlib-dev libx11-dev libxext-dev" -_builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$_builddir" - update_config_sub || return 1 + cd "$builddir" + update_config_sub + default_prepare } 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 DESTDIR="$pkgdir" docsdir=/usr/share/doc/giblib install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" docsdir=/usr/share/doc/giblib install install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING } sha512sums="4866df223e6d219a5c9a327874bcd67260c83fba8f99862222df41ef86fb31efa0172a777bf46c853ca380dc2a64bbd41bf4fd658fcb84a924cab4e0f525dcfd giblib-1.2.4.tar.gz" |