diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 20:21:56 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-06 20:30:20 +0000 |
commit | 782a41994768c9b3783230c45ca3808dd2934642 (patch) | |
tree | c1c1a65ceb3247187f9261187686acc71c1b22a1 | |
parent | ce25079b7edfcbb53cb535fd976e936ea0b529d7 (diff) | |
download | aports-782a41994768c9b3783230c45ca3808dd2934642.tar.bz2 aports-782a41994768c9b3783230c45ca3808dd2934642.tar.xz |
main/bc: modernize abuild
-rw-r--r-- | main/bc/APKBUILD | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/main/bc/APKBUILD b/main/bc/APKBUILD index 0431dceea1..e6cacd31c2 100644 --- a/main/bc/APKBUILD +++ b/main/bc/APKBUILD @@ -9,43 +9,29 @@ arch="all" license="GPL2+" depends="" makedepends="flex bison readline-dev texinfo" -install="" subpackages="$pkgname-doc" source="ftp://alpha.gnu.org/gnu/bc/bc-$pkgver.tar.bz2 bc-1.06.95-memory_leak-1.patch " -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - cd "$_builddir" - local i - 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 \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - || return 1 - make || return 1 + --infodir=/usr/share/info + make } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install } -md5sums="5126a721b73f97d715bb72c13c889035 bc-1.06.95.tar.bz2 -877e81fba316fe487ec23501059d54b8 bc-1.06.95-memory_leak-1.patch" -sha256sums="7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc bc-1.06.95.tar.bz2 -9e9279f1c2c4b83f3dab9672563bb02087776f04bb43eec135af117e6d4f83fb bc-1.06.95-memory_leak-1.patch" sha512sums="16ec13f87ef76ad4de77d378ef8d65a582adca1bf661c9d7675e78d940680c77e81a00a01817fde7c1ad1524562d6f933caa5c42a0686f3f85aadbb39393afb1 bc-1.06.95.tar.bz2 ee655b87f7fbbd7ce9a85218d38f5a971433691e7d34aff8c122b4e5ff94490c7441001dd73da8bab623a29548cd295ef9c3ae760ebf39f4825cc044d35d4eb6 bc-1.06.95-memory_leak-1.patch" |