wok view gparted/receipt @ rev 15272

ntop: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 25 13:23:35 2013 +0000 (2013-09-25)
parents 786aeb618875
children cf9a78d48bf1
line source
1 # SliTaz package receipt.
3 PACKAGE="gparted"
4 VERSION="0.15.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GTK partition editor."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="e2fsprogs dosfstools mtools ntfs-3g ntfsprogs jfsutils xfsprogs \
10 reiserfsprogs reiser4progs"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://gparted.sourceforge.net/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 CROSS="error: cannot run test program while cross compiling"
16 DEPENDS="gtk+ libsigc++ glibmm gtkmm pangomm parted util-linux-uuid \
17 xorg-libXdamage libgiomm cairomm"
18 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev \
19 cairomm-dev pangomm-dev libgiomm-dev intltool util-linux-uuid-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
26 # Remove the "-v" option from the swapon/off commands. This will allow
27 # gparted to play nicely with busybox.
28 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc
29 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc
30 ./configure \
31 --prefix=/usr \
32 --disable-scrollkeeper \
33 --disable-doc \
34 --build=$HOST_SYSTEM \
35 --host=$HOST_SYSTEM &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/pixmaps
43 cp $install/usr/share/icons/hicolor/48x48/apps/gparted.png \
44 $fs/usr/share/pixmaps/gparted.png
45 cp -a $install/usr/sbin $fs/usr
46 sed -i s/'#!\/bin\/bash'/'#!\/bin\/sh'/ $fs/usr/sbin/gparted
47 }
49 # Version 0.3.7 - Binary has moved to /usr/sbin
50 post_install()
51 {
52 rm -f $root/usr/bin/gparted
53 }