wok-4.x view gparted/receipt @ rev 12469
tazpkg: upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Nov 09 19:06:12 2022 +0000 (24 months ago) |
parents | ea35c13a1842 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gparted"
4 VERSION="0.10.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GTK partition editor."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="e2fsprogs dosfstools mtools ntfs-3g ntfsprogs jfsutils xfsprogs \
9 reiserfsprogs reiser4progs"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://gparted.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 CROSS="error: cannot run test program while cross compiling"
15 DEPENDS="gtk+ libsigc++ glibmm gtkmm pangomm parted util-linux-ng-uuid xorg-libXdamage \
16 libgiomm cairomm"
17 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm glibmm-dev gtkmm gtkmm-dev parted-dev \
18 cairomm cairomm-dev pangomm pangomm-dev libgiomm libgiomm-dev intltool parted"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 # Remove the "-v" option from the swapon/off commands. This will allow
25 # gparted to play nicely with busybox.
26 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc
27 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc
28 ./configure \
29 --prefix=/usr \
30 --disable-scrollkeeper \
31 --disable-doc \
32 --build=$HOST_SYSTEM \
33 --host=$HOST_SYSTEM &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/pixmaps
41 cp $_pkg/usr/share/icons/hicolor/48x48/apps/gparted.png \
42 $fs/usr/share/pixmaps/gparted.png
43 cp -a $_pkg/usr/sbin $fs/usr
44 sed -i s/'#!\/bin\/bash'/'#!\/bin\/sh'/ $fs/usr/sbin/gparted
45 }
47 # Version 0.3.7 - Binary has moved to /usr/sbin
48 post_install()
49 {
50 local root
51 root=$1
52 rm -f $root/usr/bin/gparted
53 }