summaryrefslogtreecommitdiffstats
path: root/binutils/Pkgfile
blob: ec9e903f12afcb7bcf0c3279ad7a83900027b4bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
description="The GNU Binutils are a collection of binary tools"
packager=""
maintainer="CRUX System Team, core-ports at crux dot nu"
url="http://sources.redhat.com/binutils/"
depends=(zlib)

name=binutils
version=2.20.1
release=1
source=(ftp://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2)
build () 
{ 
    sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in;
    sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in;
    mkdir build;
    cd build;
    ../$name-$version/configure --prefix=/usr --mandir=/usr/man --enable-shared --disable-nls;
    make tooldir=/usr;
    make check;
    make tooldir=/usr DESTDIR=$PKG install;
    cp ../$name-$version/include/libiberty.h $PKG/usr/include;
    rm -r $PKG/usr/share;
    sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
}