name=bc
version=1.06
-release=3
+release=4
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
$name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
build() {
cd $name-$version
- patch -p1 < ../$name-$version-compile_fixes.patch
- patch -p1 < ../$name-$version-fixes-1.patch
+
+ patch -p1 -i $SRC/$name-$version-compile_fixes.patch
+ patch -p1 -i $SRC/$name-$version-fixes-1.patch
+ sed '/^_PROTOTYPE/d' -i bc/scan.c
./configure --build=$CHOST \
--host=$CTARGET \
- --prefix=/usr --with-readline
- make
+ --prefix=/usr \
+ --with-readline
+ make AR="$AR"
make DESTDIR=$PKG install
rm -rf $PKG/usr/info
}