diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-13 23:57:02 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-13 23:57:02 +0200 |
commit | d51637ca0625424c3cc9dd01505a7b667b57529a (patch) | |
tree | 3c8f965cf0e282da6a9d76eb449c4b0c62078867 /main/augeas | |
parent | e86f97fc5c0b5a8556dd0db2baf7571129812543 (diff) | |
download | aports-d51637ca0625424c3cc9dd01505a7b667b57529a.tar.bz2 aports-d51637ca0625424c3cc9dd01505a7b667b57529a.tar.xz |
main/augeas: improve abuild
Diffstat (limited to 'main/augeas')
-rw-r--r-- | main/augeas/APKBUILD | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/main/augeas/APKBUILD b/main/augeas/APKBUILD index 7c234646dd..a45673b72f 100644 --- a/main/augeas/APKBUILD +++ b/main/augeas/APKBUILD @@ -7,25 +7,15 @@ url="http://augeas.net" arch="all" license="LGPL2+" depends="" -depends_dev="" -makedepends="$depends_dev readline-dev libxml2-dev" -install="" +makedepends="readline-dev libxml2-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-tests $pkgname-libs" source="http://download.augeas.net/augeas-$pkgver.tar.gz acf.aug" - -_builddir="$srcdir"/$pkgname-$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/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" + ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -39,7 +29,8 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 rm -rf "$pkgdir"/usr/lib/charset.alias || return 1 install -m 644 "$srcdir"/acf.aug "$pkgdir"/usr/share/augeas/lenses @@ -48,6 +39,7 @@ package() { tests() { pkgdesc="Tests for Augeas lenses" arch="noarch" + mkdir -p "$subpkgdir"/usr/share/augeas/lenses/dist/ mv "$pkgdir"/usr/share/augeas/lenses/dist/tests \ "$subpkgdir"/usr/share/augeas/lenses/dist/ @@ -56,6 +48,7 @@ tests() { libs() { pkgdesc="Libraries for augeas" replaces="augeas" + mkdir -p "$subpkgdir"/usr/ "$subpkgdir"/usr/share/augeas/ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1 mv "$pkgdir"/usr/share/augeas/lenses \ |