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