wok view gparted/receipt @ rev 25527

created recipes for libmpack and libmpack-dev 1.0.5
author Hans-G?nter Theisgen
date Sat Feb 25 07:28:19 2023 +0100 (21 months ago)
parents 7dd01dedad38
children
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="https://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 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - $WEB_SITE 2>/dev/null | \
27 sed '/gparted.gparted-/!d;s|.*gparted-||;s|/.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
34 # Remove the "-v" option from the swapon/off commands. This will allow
35 # gparted to play nicely with busybox.
36 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc
37 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc
38 # Process test busybox compatible
39 sed -i 's/ps -e | grep/pgrep/' gparted.in
40 ./configure \
41 --prefix=/usr \
42 --disable-scrollkeeper \
43 --disable-doc \
44 --build=$HOST_SYSTEM \
45 --host=$HOST_SYSTEM &&
46 make && make install
48 cp -f $stuff/*.desktop $install/usr/share/applications/
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 cook_copy_files gparted gpartedbin
55 cook_copy_icons
56 }