wok-current view parted/receipt @ rev 9872
Up: slitaz-boot-scripts (4.3)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 16 23:21:18 2011 +0200 (2011-05-16) |
parents | 02bbaa9d12ba |
children | c495ec2fb86d |
line source
1 # SliTaz package receipt.
3 PACKAGE="parted"
4 VERSION="2.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU parted partition editor."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="util-linux-ng-uuid"
9 BUILD_DEPENDS="e2fsprogs-dev util-linux-ng-uuid-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/parted/index.shtml"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 grep -qs 'define u8' libparted/arch/linux.c ||
19 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
20 libparted/arch/linux.c
21 ./configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --disable-debug \
26 --disable-Werror \
27 --without-readline \
28 --disable-device-mapper \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/share/locale
39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
42 }