CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
binutils: update to 2.22. Removed host's texinfo dependency.
[crossrootfs.git] / bc / Pkgfile
index 9d195a96e1cdc363801053fc3533a99405f5096f..f3003bba5983966f96a5a8b85c1a557ae7ec2739 100644 (file)
@@ -1,7 +1,7 @@
 # Description: An arbitrary precision calculator language
 # URL: http://www.gnu.org/software/bc/bc.html
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on: ncurses readline
 
 name=bc
@@ -12,13 +12,17 @@ source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
 
 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
 }