diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-12-03 20:59:29 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-12-03 20:59:29 (GMT) |
commit | 7e14c2a628468b238253a90ce18573197a0a3e20 (patch) | |
tree | 58d3057f500aeb0bdd9e476aa6f426a8ffea8640 /abs/core/bc/PKGBUILD | |
parent | ae6dbf4c04de1d0e90ca6e3514505da0fd1e466b (diff) | |
download | linhes_pkgbuild-7e14c2a628468b238253a90ce18573197a0a3e20.zip linhes_pkgbuild-7e14c2a628468b238253a90ce18573197a0a3e20.tar.gz linhes_pkgbuild-7e14c2a628468b238253a90ce18573197a0a3e20.tar.bz2 |
bc: update to 1.06.95
Diffstat (limited to 'abs/core/bc/PKGBUILD')
-rw-r--r-- | abs/core/bc/PKGBUILD | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/abs/core/bc/PKGBUILD b/abs/core/bc/PKGBUILD index 1ecefa1..faf854f 100644 --- a/abs/core/bc/PKGBUILD +++ b/abs/core/bc/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 58247 2009-11-06 14:41:31Z eric $ +# $Id$ # Maintainer: dorphell <dorphell@archlinux.org> pkgname=bc -pkgver=1.06 -pkgrel=7 +pkgver=1.06.95 +pkgrel=1 pkgdesc="An arbitrary precision calculator language" arch=('i686' 'x86_64') url="http://www.gnu.org/software/bc/" @@ -12,20 +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') -sha1sums=('c8f258a7355b40a485007c40865480349c157292' '3af67c59e2232b9329ff0c1cf49d1a8a1cf87cd7'\ - 'c15c2a301ba80cf4d3c03a6e164f4e57fa86e4a2') +source=(ftp://alpha.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig} + bc-1.06.95-void_uninitialized.patch) +md5sums=('5126a721b73f97d715bb72c13c889035' + 'SKIP' + 'fe85d42dd4151801e9b8c2d2c4d990bf') + +prepare() { + cd "${pkgname}-${pkgver}" + + # https://bugs.gentoo.org/show_bug.cgi?id=349339 + patch -Np0 -i ${srcdir}/bc-1.06.95-void_uninitialized.patch +} build() { - CFLAGS="$CFLAGS -O3" - cd "${srcdir}/${pkgname}-${pkgver}" - patch -p1 -i "${srcdir}/build-fix.patch" || return 1 - patch -p1 -i "${srcdir}/bc-1.06-info-dir-entry.patch" || return 1 + cd "${pkgname}-${pkgver}" ./configure --prefix=/usr --mandir=/usr/share/man \ - --infodir=/usr/share/info --with-readline || return 1 - make LEX="flex -I" || return 1 - make DESTDIR="${pkgdir}" install || return 1 + --infodir=/usr/share/info --with-readline + make +} + +check () { + cd "${pkgname}-${pkgver}" + echo "quit" | ./bc/bc -l Test/checklib.b # 10 failures +} + +package() { + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install } |