wok-current view gparted/receipt @ rev 25430

Up os-prober (1.81)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 19 06:26:39 2022 +0000 (2022-08-19)
parents 02335b48dae1
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="gparted"
4 VERSION="0.33.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="A partition editor to graphically manage disk partitions"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="e2fsprogs dosfstools mtools ntfs-3g ntfsprogs jfsutils xfsprogs \
10 reiserfsprogs reiser4progs btrfs-progs f2fs-tools hfsutils hfsprogs mdadm \
11 cryptsetup dmsetup lvm2 nilfs-utils udftools util-linux-minix exfat-utils \
12 util-linux-mkfs"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://gparted.sourceforge.net/"
15 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
16 CROSS="error: cannot run test program while cross compiling"
18 DEPENDS="gtk+ libsigc++ glibmm gtkmm pangomm parted util-linux-uuid \
19 xorg-libXdamage libgiomm cairomm"
20 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev \
21 cairomm-dev pangomm-dev libgiomm-dev intltool util-linux-uuid-dev"
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | \
26 sed '/gparted.gparted-/!d;s|.*gparted-||;s|/.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
33 # Remove the "-v" option from the swapon/off commands. This will allow
34 # gparted to play nicely with busybox.
35 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc
36 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc
37 # Process test busybox compatible
38 sed -i 's/ps -e | grep/pgrep/' gparted.in
39 ./configure \
40 --prefix=/usr \
41 --disable-scrollkeeper \
42 --disable-doc \
43 --build=$HOST_SYSTEM \
44 --host=$HOST_SYSTEM &&
45 make && make install
47 cp -f $stuff/*.desktop $install/usr/share/applications/
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 cook_copy_files gparted gpartedbin
54 cook_copy_icons
55 }