From 71df78efacb266fca72fea02ad150326e47871ec Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 9 Feb 2018 18:38:56 -0600 Subject: main/iso-codes: add test suite, modernise --- main/iso-codes/APKBUILD | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main/iso-codes/APKBUILD b/main/iso-codes/APKBUILD index 1de3e56499..3ea57a0d7e 100644 --- a/main/iso-codes/APKBUILD +++ b/main/iso-codes/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=iso-codes pkgver=3.75 -pkgrel=0 +pkgrel=1 pkgdesc="Lists of the country, language, and currency names" url="http://pkg-isocodes.alioth.debian.org/" arch="noarch" @@ -17,14 +17,18 @@ build() { ./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" pkgconfigdir=/usr/lib/pkgconfig install || return 1 + make DESTDIR="$pkgdir" pkgconfigdir=/usr/lib/pkgconfig install } sha512sums="157899048cec091864ad8a7723314e28a0ccc4a0e1a5c2101bb630baf1a034bf117e38263e3c95e0135ba9d3a4d76635c8201c50a54e25f6af24c87253b8b40e iso-codes-3.75.tar.xz" -- cgit v1.2.3