wok view binutils/receipt @ rev 526

Memtest: typo in unlzma
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 09 14:00:35 2008 +0000 (2008-04-09)
parents bfeff0fa24ac
children 5175cd550521
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.17"
5 CATEGORY="development"
6 SHORT_DESC="GNU assembler, linker and binary utilities."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 mkdir binutils-build && cd binutils-build
16 ../$PACKAGE-$VERSION/configure --prefix=/usr \
17 --infodir=/usr/share/info --mandir=/usr/share/man \
18 --enable-shared $CONFIGURE_ARGS
19 make tooldir=/usr
20 # Install in binutils-build/ and then move the files to
21 # to the source tree. Can't install directly... This is done
22 # to keep the $src and $_pkg working for genpkg.
23 make tooldir=/usr DESTDIR=$PWD/_pkg install
24 mv _pkg ../$PACKAGE-$VERSION/
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/locale
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 cp -a $_pkg/usr/include $fs/usr
34 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
35 # libiberty.h
36 cp -a $src/include/libiberty.h $fs/usr/include
37 # Remove libiberty.a (use the one from GCC) and 'strings' (Busybox).
38 rm $fs/usr/lib/libiberty.a
39 rm $fs/usr/bin/strings
40 # Da strip...
41 strip --strip-debug $fs/usr/bin/*
42 strip --strip-debug $fs/usr/lib/*.so*
43 }