diff options
author | Gavin Howard <yzena.tech@gmail.com> | 2018-03-30 21:12:16 -0600 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-04-05 19:11:47 +0200 |
commit | 8f6a97e21498adfb6a1f24e95eab844a7be6db86 (patch) | |
tree | b8c1a1d4d953cf3330dbd4f73d01e71c00b8b4a7 /testing/howard-bc | |
parent | c561d0ee3a21c7ba4b9dfdb469e1189014120797 (diff) | |
download | aports-8f6a97e21498adfb6a1f24e95eab844a7be6db86.tar.bz2 aports-8f6a97e21498adfb6a1f24e95eab844a7be6db86.tar.xz |
testing/howard-bc: new aport
https://github.com/gavinhoward/bc
POSIX bc with GNU extensions
Diffstat (limited to 'testing/howard-bc')
-rw-r--r-- | testing/howard-bc/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/howard-bc/APKBUILD b/testing/howard-bc/APKBUILD new file mode 100644 index 0000000000..e0af8dc0f7 --- /dev/null +++ b/testing/howard-bc/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Gavin D. Howard <yzena.tech@gmail.com> +# Maintainer: Gavin D. Howard <yzena.tech@gmail.com> +pkgname=howard-bc +_pkgname=bc +pkgver=0.5 +pkgrel=0 +pkgdesc="POSIX bc with GNU extensions" +url="https://github.com/gavinhoward/bc" +arch="all" +license="0BSD" +depends="!bc" +provides="bc" +source="https://github.com/gavinhoward/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.xz" +builddir="$srcdir/$_pkgname-$pkgver" +# The test suite uses a previously installed version of bc, +# so it would not make much sense to run it. +options="!check" + +build() { + cd "$builddir" + CFLAGS="-flto" make release +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir"/usr/bin + PREFIX="$pkgdir"/usr make install +} + +sha512sums="d565a8fb87993f1a8a391d821105b4b572bcdad83b02f30c8698bc1ade658aa47f685918cf56d43713dc81606d3203ded7bd79fce8ae5ba94cf2e9e01186251f bc-0.5.tar.xz" |