wok-current annotate gparted/receipt @ rev 14822
Up: libxfce4ui* (4.19.0)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:48:02 2013 +0200 (2013-07-17) |
parents | 6b57132cfe94 |
children | 380ffe05937a |
rev | line source |
---|---|
pankso@137 | 1 # SliTaz package receipt. |
pankso@137 | 2 |
pankso@137 | 3 PACKAGE="gparted" |
pankso@14248 | 4 VERSION="0.15.0" |
pankso@190 | 5 CATEGORY="system-tools" |
pankso@137 | 6 SHORT_DESC="GTK partition editor." |
pankso@137 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@3822 | 8 SUGGESTED="e2fsprogs dosfstools mtools ntfs-3g ntfsprogs jfsutils xfsprogs \ |
pankso@3822 | 9 reiserfsprogs reiser4progs" |
pankso@137 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@137 | 11 WEB_SITE="http://gparted.sourceforge.net/" |
pankso@137 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@10392 | 13 CROSS="error: cannot run test program while cross compiling" |
pankso@137 | 14 |
pankso@12489 | 15 DEPENDS="gtk+ libsigc++ glibmm gtkmm pangomm parted util-linux-uuid \ |
pankso@12489 | 16 xorg-libXdamage libgiomm cairomm" |
pankso@12489 | 17 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev \ |
pankso@12490 | 18 cairomm-dev pangomm-dev libgiomm-dev intltool util-linux-uuid-dev" |
slaxemulator@11190 | 19 |
pankso@137 | 20 # Rules to configure and make the package. |
pankso@137 | 21 compile_rules() |
pankso@137 | 22 { |
pankso@137 | 23 cd $src |
pascal@13138 | 24 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|' |
samuel_trassare@13529 | 25 # Remove the "-v" option from the swapon/off commands. This will allow |
samuel_trassare@13529 | 26 # gparted to play nicely with busybox. |
samuel_trassare@13529 | 27 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc |
samuel_trassare@13529 | 28 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc |
pankso@137 | 29 ./configure \ |
pankso@137 | 30 --prefix=/usr \ |
erjo@1446 | 31 --disable-scrollkeeper \ |
erjo@1815 | 32 --disable-doc \ |
pankso@10392 | 33 --build=$HOST_SYSTEM \ |
pankso@10392 | 34 --host=$HOST_SYSTEM && |
pankso@10392 | 35 make && make install |
pankso@137 | 36 } |
pankso@137 | 37 |
pankso@137 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@137 | 39 genpkg_rules() |
pankso@137 | 40 { |
pascal@1880 | 41 mkdir -p $fs/usr/share/pixmaps |
pankso@14248 | 42 cp $install/usr/share/icons/hicolor/48x48/apps/gparted.png \ |
pascal@1880 | 43 $fs/usr/share/pixmaps/gparted.png |
pankso@14248 | 44 cp -a $install/usr/sbin $fs/usr |
pankso@827 | 45 sed -i s/'#!\/bin\/bash'/'#!\/bin\/sh'/ $fs/usr/sbin/gparted |
pankso@137 | 46 } |
pankso@793 | 47 |
pankso@793 | 48 # Version 0.3.7 - Binary has moved to /usr/sbin |
pankso@793 | 49 post_install() |
pankso@793 | 50 { |
pankso@793 | 51 rm -f $root/usr/bin/gparted |
pankso@793 | 52 } |