wok-next annotate parted/receipt @ rev 9977

gcc: we want a i486 optimised compiler not to host optimised (tank is i686)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 18 21:15:14 2011 +0200 (2011-05-18)
parents e5ae411e1d8c
children bfdad5e4caeb
rev   line source
pankso@136 1 # SliTaz package receipt.
pankso@136 2
pankso@136 3 PACKAGE="parted"
devl547@5662 4 VERSION="2.3"
pankso@211 5 CATEGORY="system-tools"
pankso@136 6 SHORT_DESC="GNU parted partition editor."
pankso@136 7 MAINTAINER="pankso@slitaz.org"
pankso@136 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@136 9 WEB_SITE="http://www.gnu.org/software/parted/index.shtml"
pankso@136 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@136 11
pankso@9902 12 DEPENDS="util-linux-ng-uuid util-linux-ng-blkid"
pankso@9902 13 BUILD_DEPENDS="e2fsprogs-dev util-linux-ng-uuid-dev util-linux-ng-blkid-dev"
pankso@9902 14
pankso@136 15 # Rules to configure and make the package.
pankso@136 16 compile_rules()
pankso@136 17 {
pankso@136 18 cd $src
pascal@6114 19 grep -qs 'define u8' libparted/arch/linux.c ||
pascal@6114 20 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
pascal@6114 21 libparted/arch/linux.c
pankso@136 22 ./configure \
pankso@136 23 --disable-debug \
pankso@136 24 --disable-Werror \
pankso@136 25 --without-readline \
pankso@9902 26 --disable-device-mapper &&
pankso@9902 27 make && make install
pankso@136 28 }
pankso@136 29
pankso@136 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@136 31 genpkg_rules()
pankso@136 32 {
pankso@136 33 mkdir -p $fs/usr/lib $fs/usr/share/locale
pankso@136 34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@136 35 cp -a $_pkg/usr/sbin $fs/usr
pankso@136 36 }