summaryrefslogtreecommitdiff
path: root/extra/bc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-13 23:14:39 +0000
committerroot <root@rshg054.dnsready.net>2011-09-13 23:14:39 +0000
commita712dc92423a31a4d3ab34fe660df550feebf442 (patch)
treead93851f4343f00cec2f901e4839da01a8b77efe /extra/bc
parentb3a841a1f66eff75be29fba090b83ce4322d4721 (diff)
Tue Sep 13 23:14:39 UTC 2011
Diffstat (limited to 'extra/bc')
-rw-r--r--extra/bc/PKGBUILD31
1 files changed, 18 insertions, 13 deletions
diff --git a/extra/bc/PKGBUILD b/extra/bc/PKGBUILD
index 7c7337580..96ab3239b 100644
--- a/extra/bc/PKGBUILD
+++ b/extra/bc/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 58245 2009-11-06 14:34:42Z eric $
+# $Id: PKGBUILD 137896 2011-09-12 10:03:30Z pierre $
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=bc
pkgver=1.06
-pkgrel=7
+pkgrel=8
pkgdesc="An arbitrary precision calculator language"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/bc/"
@@ -12,20 +12,25 @@ 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'\
+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')
build() {
- CFLAGS="$CFLAGS -O3"
+ export CFLAGS="${CFLAGS/-O?/-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
+ patch -p1 -i "${srcdir}/build-fix.patch"
+ patch -p1 -i "${srcdir}/bc-1.06-info-dir-entry.patch"
+
./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 LEX="flex -I"
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
}