CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / bc / Pkgfile
CommitLineData
6dca1d21
JB
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, crux-arm at mikeux dot dyndns dot org
5# Depends on: ncurses readline
6
7name=bc
8version=1.06
9release=3
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 patch -p1 < ../$name-$version-compile_fixes.patch
16 patch -p1 < ../$name-$version-fixes-1.patch
17
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr --with-readline
21 make
22 make DESTDIR=$PKG install
23 rm -rf $PKG/usr/info
24}