mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
27 lines
787 B
Bash
27 lines
787 B
Bash
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
|
|
# Modified by OpenPogo
|
|
|
|
pkgname=bc
|
|
pkgver=1.06
|
|
pkgrel=1
|
|
pkgdesc="An arbitrary precision calculator language"
|
|
arch=('arm')
|
|
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=/opt --mandir=/opt/share/man \
|
|
--infodir=/opt/share/info --with-readline
|
|
make LEX="flex -I" || return 1
|
|
make DESTDIR=${startdir}/pkg install
|
|
rm ${pkgdir}/opt/share/info/dir
|
|
}
|