diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-07 02:02:57 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-07 13:19:50 +0100 |
commit | f170765998465e7a701ce920d9aab67bb3654a4f (patch) | |
tree | 6b956d162c04493e24dbc5d51716c131ad995d69 /main/augeas | |
parent | 83e58a43039be6eb362c5c7ec8fa81c1678c80a9 (diff) | |
download | aports-f170765998465e7a701ce920d9aab67bb3654a4f.tar.bz2 aports-f170765998465e7a701ce920d9aab67bb3654a4f.tar.xz |
main/augeas: modernize abuild
Diffstat (limited to 'main/augeas')
-rw-r--r-- | main/augeas/APKBUILD | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/main/augeas/APKBUILD b/main/augeas/APKBUILD index 540591d792..5c0b04bb1f 100644 --- a/main/augeas/APKBUILD +++ b/main/augeas/APKBUILD @@ -6,7 +6,6 @@ pkgdesc="A configuration editing tool" url="http://augeas.net" arch="all" license="LGPL-2.0-or-later" -depends="" makedepends="readline-dev libxml2-dev" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-tests::noarch $pkgname-libs" source="http://download.augeas.net/augeas-$pkgver.tar.gz @@ -27,19 +26,23 @@ build() { --infodir=/usr/share/info \ --enable-static \ --enable-shared \ - --disable-gnulib-tests \ - || return 1 - make || return 1 - make tests || return 1 + --disable-gnulib-tests + make + make tests +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 - rm -rf "$pkgdir"/usr/lib/charset.alias || return 1 + make DESTDIR="$pkgdir" install + rm -rf "$pkgdir"/usr/lib/charset.alias # Upstream packaging mistake, this should never have been installed - rm -f "$pkgdir"/usr/bin/dump || return 1 + rm -f "$pkgdir"/usr/bin/dump install -m 644 "$srcdir"/acf.aug "$pkgdir"/usr/share/augeas/lenses } @@ -56,21 +59,16 @@ libs() { replaces="augeas" mkdir -p "$subpkgdir"/usr/ "$subpkgdir"/usr/share/augeas/ - mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1 + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ mv "$pkgdir"/usr/share/augeas/lenses \ - "$subpkgdir"/usr/share/augeas/ || return 1 + "$subpkgdir"/usr/share/augeas/ } static() { pkgdesc="Static libraries for Augeas" mkdir -p "$subpkgdir"/usr/lib/ - mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ || return 1 -} - -check() { - cd "$builddir" - make check + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ } sha512sums="340aed78ac2df455770735b41f3c10a1cbe40f160e236a735d4580edf5b635afeaf7ddadc10e759e9197c4b233e98b3b6b94a3c2f072aa765c104d64371ce171 augeas-1.9.0.tar.gz |