1 # Description: The GNU Binutils are a collection of binary tools
2 # URL: http://sources.redhat.com/binutils/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
13 sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
14 sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in
15 sed -i 's|really-check: check-cplus-dem check-pexecute check-expandargv|really-check:|g' -i $name-$version/libiberty/testsuite/Makefile.in
20 $SRC/$name-$version/configure --build=$CHOST \
32 make tooldir=/usr DESTDIR=$PKG install
34 install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include
36 rm -r $PKG/usr/share/info
37 rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1
38 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la