wok-current annotate parted/receipt @ rev 6166
Up: thunderbird-langpack-pt_PT (3.1.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Sep 10 12:24:52 2010 +0200 (2010-09-10) |
parents | 7c0c08ab9479 |
children | 02bbaa9d12ba |
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@4052 | 8 DEPENDS="util-linux-ng-uuid" |
pankso@5704 | 9 BUILD_DEPENDS="e2fsprogs-dev util-linux-ng-uuid-dev" |
pankso@136 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@136 | 11 WEB_SITE="http://www.gnu.org/software/parted/index.shtml" |
pankso@136 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@136 | 13 |
pankso@136 | 14 # Rules to configure and make the package. |
pankso@136 | 15 compile_rules() |
pankso@136 | 16 { |
pankso@136 | 17 cd $src |
pascal@6114 | 18 grep -qs 'define u8' libparted/arch/linux.c || |
pascal@6114 | 19 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ |
pascal@6114 | 20 libparted/arch/linux.c |
pankso@136 | 21 ./configure \ |
pankso@136 | 22 --prefix=/usr \ |
pankso@136 | 23 --infodir=/usr/share/info \ |
pankso@136 | 24 --mandir=/usr/share/man \ |
pankso@136 | 25 --disable-debug \ |
pankso@136 | 26 --disable-Werror \ |
pankso@136 | 27 --without-readline \ |
slaxemulator@5373 | 28 --disable-device-mapper \ |
pascal@1451 | 29 $CONFIGURE_ARGS && |
pascal@1451 | 30 make && |
pankso@136 | 31 make DESTDIR=$PWD/_pkg install |
pankso@136 | 32 } |
pankso@136 | 33 |
pankso@136 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@136 | 35 genpkg_rules() |
pankso@136 | 36 { |
pankso@136 | 37 mkdir -p $fs/usr/lib $fs/usr/share/locale |
pankso@136 | 38 |
pankso@136 | 39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@136 | 40 cp -a $_pkg/usr/sbin $fs/usr |
pankso@136 | 41 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@136 | 42 |
pankso@136 | 43 strip -s $fs/usr/lib/* 2>/dev/null |
pankso@136 | 44 strip -s $fs/usr/sbin/* 2>/dev/null |
pankso@136 | 45 } |