summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-23 19:44:32 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-23 19:44:32 +0000
commita7156d80f00940decb5a9a7827d3479d8659f842 (patch)
tree781f502d9d5c301efca02b6c6ecc2fc9651e32e7 /system
parent7749175e007b4fbd53d08b712201ecf27f173aec (diff)
downloadpackages-a7156d80f00940decb5a9a7827d3479d8659f842.tar.gz
packages-a7156d80f00940decb5a9a7827d3479d8659f842.tar.bz2
packages-a7156d80f00940decb5a9a7827d3479d8659f842.tar.xz
packages-a7156d80f00940decb5a9a7827d3479d8659f842.zip
system/bc: replace with POSIX bc
Diffstat (limited to 'system')
-rw-r--r--system/bc/APKBUILD37
1 files changed, 14 insertions, 23 deletions
diff --git a/system/bc/APKBUILD b/system/bc/APKBUILD
index 85fba4be8..269a6f8d0 100644
--- a/system/bc/APKBUILD
+++ b/system/bc/APKBUILD
@@ -1,36 +1,27 @@
-# Contributor: Michael Mason <ms13sp@gmail.com>
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=bc
-pkgver=1.07.1
-pkgrel=1
+pkgver=1.0_rc7
+pkgrel=0
pkgdesc="An arbitrary precision numeric processing language (calculator)"
-url="https://www.gnu.org/software/bc/bc.html"
+url="https://github.com/gavinhoward/bc"
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"
+options="!check" # No test suite.
+license="BSD-0-Clause"
+depends=""
+makedepends=""
+subpackages=""
+source="https://github.com/gavinhoward/bc/releases/download/${pkgver/_/-}/bc-${pkgver/_/-}.tar.xz"
+builddir="$srcdir"/$pkgname-${pkgver/_/-}
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
+ make PREFIX="/usr"
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
}
-sha512sums="02126d0db6b6ed06d56cfc292d6f5475ff1e574779d7e69c7809bbb1e13f946f57ea07da2a7666baa092507a951a822044b0970075f75eefe65a5c1999b75d34 bc-1.07.1.tar.gz"
+sha512sums="58d50f6a369dd5aded16d9c9384f896a5a683bd1923c116fefe2dd8af24221c55a728d006c9cac9c9992ad6e04031173ce456fca61151b8b5d568ad0a3b39333 bc-1.0-rc7.tar.xz"