wok-next view gparted/receipt @ rev 16482
ARM: add gocr
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 03:49:13 2014 +0200 (2014-04-23) |
parents | 7112646fb2db |
children | f11e2112c49d |
line source
1 # SliTaz package receipt.
3 PACKAGE="gparted"
4 VERSION="0.18.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GTK partition editor."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="e2fsprogs dosfstools mtools ntfs-3g ntfsprogs jfsutils xfsprogs \
10 reiserfsprogs reiser4progs"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://gparted.sourceforge.net/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 CROSS="error: cannot run test program while cross compiling"
16 DEPENDS="gtk+ libsigc++ glibmm gtkmm pangomm parted util-linux-uuid \
17 xorg-libXdamage libgiomm cairomm"
18 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev \
19 cairomm-dev pangomm-dev libgiomm-dev intltool util-linux-uuid-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
26 # Remove the "-v" option from the swapon/off commands. This will allow
27 # gparted to play nicely with busybox.
28 sed -i 's/swapoff -v/swapoff/' src/Win_GParted.cc
29 sed -i 's/swapon -v/swapon/' src/Win_GParted.cc
30 # Process test busybox compatible
31 sed -i 's/ps -e | grep/pgrep/' gparted.in
32 ./configure \
33 --prefix=/usr \
34 --disable-scrollkeeper \
35 --disable-doc \
36 --build=$HOST_SYSTEM \
37 --host=$HOST_SYSTEM &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/pixmaps
45 cp $install/usr/share/icons/hicolor/48x48/apps/gparted.png \
46 $fs/usr/share/pixmaps/gparted.png
47 cp -a $install/usr/sbin $fs/usr
48 sed -i s/'#!\/bin\/bash'/'#!\/bin\/sh'/ $fs/usr/sbin/gparted
49 }
51 # Version 0.3.7 - Binary has moved to /usr/sbin
52 post_install()
53 {
54 rm -f $root/usr/bin/gparted
55 }