diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-01-15 13:16:12 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-01-15 13:16:12 +0100 |
commit | 7b0e9fbe701511810484eaff5258fde5c79e8fde (patch) | |
tree | f49caff6ca54385ced6b002b7ba26c4c5f410c4e | |
parent | a95a7109e8c34a619218e365820e00af81cf11a2 (diff) | |
download | aports-7b0e9fbe701511810484eaff5258fde5c79e8fde.tar.bz2 aports-7b0e9fbe701511810484eaff5258fde5c79e8fde.tar.xz |
main/nettle: improve abuild
-rw-r--r-- | main/nettle/APKBUILD | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/main/nettle/APKBUILD b/main/nettle/APKBUILD index 0bf0d125fe..3976266b0d 100644 --- a/main/nettle/APKBUILD +++ b/main/nettle/APKBUILD @@ -9,26 +9,15 @@ url="http://www.lysator.liu.se/~nisse/nettle/" arch="all" license="LGPL2+" depends="" -depends_dev="gmp-dev m4" -makedepends="$depends_dev" -install="" +depends_dev="gmp-dev" +makedepends="$depends_dev m4" subpackages="$pkgname-dev $pkgname-utils" source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz nettle-2.4-makefile.patch" -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - local i - 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 \ @@ -46,7 +35,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } |