summaryrefslogtreecommitdiff
path: root/system/bc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 17:34:03 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 17:34:03 -0500
commitcf2ffff46bf98918a61fe461bfe33a4672486ec9 (patch)
treea9a484c805912d75ef52ec98142b339f23fe1cd4 /system/bc
parent8ed2ee1edfbb86747ef924e53bd64a5493b81ef9 (diff)
downloadpackages-cf2ffff46bf98918a61fe461bfe33a4672486ec9.tar.gz
packages-cf2ffff46bf98918a61fe461bfe33a4672486ec9.tar.bz2
packages-cf2ffff46bf98918a61fe461bfe33a4672486ec9.tar.xz
packages-cf2ffff46bf98918a61fe461bfe33a4672486ec9.zip
system/bc: add for posix/lsb/easy-kernel builds
Diffstat (limited to 'system/bc')
-rw-r--r--system/bc/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/system/bc/APKBUILD b/system/bc/APKBUILD
new file mode 100644
index 000000000..85fba4be8
--- /dev/null
+++ b/system/bc/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=bc
+pkgver=1.07.1
+pkgrel=1
+pkgdesc="An arbitrary precision numeric processing language (calculator)"
+url="https://www.gnu.org/software/bc/bc.html"
+arch="all"
+license="GPL-2.0+"
+makedepends="ed flex bison texinfo"
+subpackages="$pkgname-doc"
+source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="02126d0db6b6ed06d56cfc292d6f5475ff1e574779d7e69c7809bbb1e13f946f57ea07da2a7666baa092507a951a822044b0970075f75eefe65a5c1999b75d34 bc-1.07.1.tar.gz"