CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / bc / Pkgfile
... / ...
CommitLineData
1# Description: An arbitrary precision calculator language
2# URL: http://www.gnu.org/software/bc/bc.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
5# Depends on: ncurses readline
6
7name=bc
8version=1.06
9release=4
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
11 $name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
12
13build() {
14 cd $name-$version
15
16 patch -p1 -i $SRC/$name-$version-compile_fixes.patch
17 patch -p1 -i $SRC/$name-$version-fixes-1.patch
18 sed '/^_PROTOTYPE/d' -i bc/scan.c
19
20 ./configure --build=$CHOST \
21 --host=$CTARGET \
22 --prefix=/usr \
23 --with-readline
24 make AR="$AR"
25 make DESTDIR=$PKG install
26 rm -rf $PKG/usr/info
27}