Commit | Line | Data |
---|---|---|
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 | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: ncurses readline |
6 | ||
7 | name=bc | |
8 | version=1.06 | |
7a283345 | 9 | release=3 |
6dca1d21 JB |
10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \ |
11 | $name-$version-compile_fixes.patch $name-$version-fixes-1.patch) | |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
1c6e6ec6 JB |
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 | |
6dca1d21 JB |
19 | |
20 | ./configure --build=$CHOST \ | |
21 | --host=$CTARGET \ | |
1c6e6ec6 JB |
22 | --prefix=/usr \ |
23 | --with-readline | |
7a283345 | 24 | |
1c6e6ec6 | 25 | make AR="$AR" |
6dca1d21 JB |
26 | make DESTDIR=$PKG install |
27 | rm -rf $PKG/usr/info | |
28 | } |