wok view gparted/receipt @ rev 13641
Up: edbus (1.7.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Nov 16 00:06:13 2012 +0100 (2012-11-16) |
parents | 1d121115376c |
children | 6b57132cfe94 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gparted"
4 VERSION="0.14.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-uuid \
16 xorg-libXdamage libgiomm cairomm"
17 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev \
18 cairomm-dev pangomm-dev libgiomm-dev intltool util-linux-uuid-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
25 # Remove the "-v" option from the swapon/off commands. This will allow
26 # gparted to play nicely with busybox.
27 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc
28 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc
29 ./configure \
30 --prefix=/usr \
31 --disable-scrollkeeper \
32 --disable-doc \
33 --build=$HOST_SYSTEM \
34 --host=$HOST_SYSTEM &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share/pixmaps
42 cp $_pkg/usr/share/icons/hicolor/48x48/apps/gparted.png \
43 $fs/usr/share/pixmaps/gparted.png
44 cp -a $_pkg/usr/sbin $fs/usr
45 sed -i s/'#!\/bin\/bash'/'#!\/bin\/sh'/ $fs/usr/sbin/gparted
46 }
48 # Version 0.3.7 - Binary has moved to /usr/sbin
49 post_install()
50 {
51 local root
52 root=$1
53 rm -f $root/usr/bin/gparted
54 }