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