summaryrefslogtreecommitdiff
path: root/extra/bc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/bc/PKGBUILD')
-rw-r--r--extra/bc/PKGBUILD37
1 files changed, 22 insertions, 15 deletions
diff --git a/extra/bc/PKGBUILD b/extra/bc/PKGBUILD
index 96ab3239b..f323eab0f 100644
--- a/extra/bc/PKGBUILD
+++ b/extra/bc/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 137896 2011-09-12 10:03:30Z pierre $
+# $Id: PKGBUILD 204773 2014-01-26 21:41:56Z andyrtr $
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=bc
-pkgver=1.06
-pkgrel=8
+pkgver=1.06.95
+pkgrel=1
pkgdesc="An arbitrary precision calculator language"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/bc/"
@@ -12,25 +12,32 @@ depends=('readline')
replaces=('bc-readline')
conflicts=('bc-readline')
install=bc.install
-source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'build-fix.patch' 'bc-1.06-info-dir-entry.patch')
-md5sums=('d44b5dddebd8a7a7309aea6c36fda117'
- 'fc7ecbd9e55ef04c6d3a495692626116'
- 'b6fe9869830aca0d34badf810fe0cfb3')
+source=(ftp://alpha.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig}
+ bc-1.06.95-void_uninitialized.patch)
+md5sums=('5126a721b73f97d715bb72c13c889035'
+ 'SKIP'
+ 'fe85d42dd4151801e9b8c2d2c4d990bf')
-build() {
- export CFLAGS="${CFLAGS/-O?/-O3}"
+prepare() {
+ cd "${pkgname}-${pkgver}"
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -p1 -i "${srcdir}/build-fix.patch"
- patch -p1 -i "${srcdir}/bc-1.06-info-dir-entry.patch"
+ # https://bugs.gentoo.org/show_bug.cgi?id=349339
+ patch -Np0 -i ${srcdir}/bc-1.06.95-void_uninitialized.patch
+}
+build() {
+ cd "${pkgname}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --with-readline
- make LEX="flex -I"
+ make
+}
+
+check () {
+ cd "${pkgname}-${pkgver}"
+ echo "quit" | ./bc/bc -l Test/checklib.b # 10 failures
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}