summaryrefslogtreecommitdiffstats
path: root/abs/core/bc/PKGBUILD
blob: a20e35f8a3da750b600a16e575596815359930f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 9097 2008-08-17 03:44:40Z allan $
# Maintainer: dorphell <dorphell@archlinux.org>

pkgname=bc
pkgver=1.06
pkgrel=5
pkgdesc="An arbitrary precision calculator language"
arch=(i686 x86_64)
license=('GPL')
depends=('readline')
replaces=(bc-readline)
conflicts=(bc-readline)
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
	build-fix.patch)
md5sums=('d44b5dddebd8a7a7309aea6c36fda117' 'fc7ecbd9e55ef04c6d3a495692626116')

build() {
  CFLAGS="$CFLAGS -O3"
  cd ${startdir}/src/${pkgname}-${pkgver}
  patch -Np1 -i ${startdir}/src/build-fix.patch || return 1
  ./configure --prefix=/usr --mandir=/usr/share/man \
    --infodir=/usr/share/info --with-readline
  make LEX="flex -I" || return 1
  make DESTDIR=${startdir}/pkg install
  rm ${pkgdir}/usr/share/info/dir
}