diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-19 23:48:53 -0500 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-28 08:40:51 +0000 |
commit | 30959862d3234da831ca64b419c769e367957cf0 (patch) | |
tree | 02e6380b44ffdae60f77e68e0aabe1f1743c8775 /main/groff/APKBUILD | |
parent | c71c25237869127bd67d2f3336424358d1e3a4f5 (diff) | |
download | aports-30959862d3234da831ca64b419c769e367957cf0.tar.bz2 aports-30959862d3234da831ca64b419c769e367957cf0.tar.xz |
main/groff: add 'validation suite' and modernise
Diffstat (limited to 'main/groff/APKBUILD')
-rw-r--r-- | main/groff/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/main/groff/APKBUILD b/main/groff/APKBUILD index dfa22d71dd..4140be26f3 100644 --- a/main/groff/APKBUILD +++ b/main/groff/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=groff pkgver=1.22.3 -pkgrel=1 +pkgrel=2 pkgdesc="GNU troff text-formatting system" url="http://www.gnu.org/software/groff/groff.html" arch="all" @@ -12,19 +12,23 @@ subpackages="$pkgname-doc" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" build () { - cd "$srcdir/$pkgname-$pkgver" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --without-x \ - || return 1 + --without-x # work around parallel build issue - make arch/misc && make || return 1 + make arch/misc && make +} + +check() { + cd "$builddir" + make check } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$builddir" make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true |