summaryrefslogtreecommitdiffstats
path: root/main/bc/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-09 17:40:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-09 17:45:23 +0000
commit28ef54953b35475a1ee3814b4d32b17685976fc2 (patch)
tree5c5e06b29cf1a826c4d8fd3afab120d86696df1d /main/bc/APKBUILD
parentea2ae6eb2d732e7e2530b6a04c1519c9c9b9a057 (diff)
downloadaports-28ef54953b35475a1ee3814b4d32b17685976fc2.tar.bz2
aports-28ef54953b35475a1ee3814b4d32b17685976fc2.tar.xz
main/bc: upgrade to 1.06.95
Diffstat (limited to 'main/bc/APKBUILD')
-rw-r--r--main/bc/APKBUILD28
1 files changed, 21 insertions, 7 deletions
diff --git a/main/bc/APKBUILD b/main/bc/APKBUILD
index 337dbe60a..1dd5cd96f 100644
--- a/main/bc/APKBUILD
+++ b/main/bc/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bc
-pkgver=1.06
-pkgrel=3
+pkgver=1.06.95
+pkgrel=0
pkgdesc="arbitrary precision numeric processing language (calculator)"
url="http://www.gnu.org/software/bc/bc.html"
arch="all"
@@ -11,18 +11,32 @@ depends=
makedepends="flex readline-dev"
install=
subpackages="$pkgname-doc"
-source="http://mirrors.kernel.org/gnu/bc/$pkgname-$pkgver.tar.gz"
+source="ftp://alpha.gnu.org/gnu/bc/bc-$pkgver.tar.bz2
+ bc-1.06.95-void_uninitialized.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
+}
build() {
- cd "$srcdir/$pkgname-$pkgver"
-
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
- make DESTDIR="$pkgdir" install
+}
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz"
+md5sums="5126a721b73f97d715bb72c13c889035 bc-1.06.95.tar.bz2
+c83b1973eb393d3b3254d7815a7e152b bc-1.06.95-void_uninitialized.patch"