diff options
Diffstat (limited to 'main/bc/APKBUILD')
-rw-r--r-- | main/bc/APKBUILD | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/main/bc/APKBUILD b/main/bc/APKBUILD index 337dbe60a6..1dd5cd96f8 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" |