wok-next annotate gparted/receipt @ rev 20144
mdocml: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 11:25:34 2017 +0100 (2017-11-01) |
parents | f463de72afe3 |
children | d43bf7aae921 |
rev | line source |
---|---|
al@19816 | 1 # SliTaz package receipt v2. |
pankso@137 | 2 |
pankso@137 | 3 PACKAGE="gparted" |
al@19816 | 4 VERSION="0.28.1" |
pankso@190 | 5 CATEGORY="system-tools" |
al@19490 | 6 SHORT_DESC="A partition editor to graphically manage disk partitions" |
pankso@137 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@137 | 9 WEB_SITE="http://gparted.sourceforge.net/" |
pankso@10392 | 10 CROSS="error: cannot run test program while cross compiling" |
pankso@137 | 11 |
al@19816 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19816 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@19816 | 14 |
pankso@12489 | 15 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev \ |
pankso@12490 | 16 cairomm-dev pangomm-dev libgiomm-dev intltool util-linux-uuid-dev" |
slaxemulator@11190 | 17 |
pankso@137 | 18 # Rules to configure and make the package. |
pankso@137 | 19 compile_rules() |
pankso@137 | 20 { |
al@19816 | 21 # http://www.linuxfromscratch.org/blfs/view/stable/xsoft/gparted.html |
al@19816 | 22 |
al@19816 | 23 # Remove the "-v" option from the swapon/off commands. |
al@19816 | 24 # This will allow gparted to play nicely with busybox. |
al@19816 | 25 sed -i 's/swapoff -v/swapoff/; s/swapon -v/swapon/' src/Win_GParted.cc |
mojo@15757 | 26 # Process test busybox compatible |
mojo@15757 | 27 sed -i 's/ps -e | grep/pgrep/' gparted.in |
al@19816 | 28 # Remove keywords from desktop file and apply SliTaz graphical SU method |
al@19816 | 29 sed -i '/^_Keywords=/d; s|@gksuprog@|tazbox su|' gparted.desktop.in.in |
al@19816 | 30 |
pankso@137 | 31 ./configure \ |
pankso@137 | 32 --prefix=/usr \ |
erjo@1446 | 33 --disable-scrollkeeper \ |
erjo@1815 | 34 --disable-doc \ |
pankso@10392 | 35 --build=$HOST_SYSTEM \ |
pankso@10392 | 36 --host=$HOST_SYSTEM && |
pankso@10392 | 37 make && make install |
pankso@137 | 38 } |
pankso@137 | 39 |
pankso@137 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@137 | 41 genpkg_rules() |
pankso@137 | 42 { |
al@19783 | 43 copy gparted gpartedbin |
al@19816 | 44 DEPENDS="atk atkmm cairo cairomm fontconfig freetype gdk-pixbuf glib \ |
al@19816 | 45 glibmm gtk+ gtkmm libgiomm libsigc++ pango pangomm parted util-linux-uuid" |
al@19816 | 46 SUGGESTED="e2fsprogs dosfstools mtools ntfs-3g ntfsprogs jfsutils xfsprogs \ |
al@19816 | 47 reiserfsprogs reiser4progs btrfs-progs f2fs-tools hfsutils hfsprogs \ |
al@19816 | 48 util-linux-mkfs util-linux-misc lvm2 cryptsetup dmsetup nilfs-utils xfsdump" |
pankso@137 | 49 } |