wok-stable annotate gparted/receipt @ rev 871
linux: package all splited pkgs with genpkg_rules
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jun 06 12:20:08 2008 +0200 (2008-06-06) |
parents | 252084f1cb73 |
children | 46ad30cc65a1 |
rev | line source |
---|---|
pankso@137 | 1 # SliTaz package receipt. |
pankso@137 | 2 |
pankso@137 | 3 PACKAGE="gparted" |
pankso@793 | 4 VERSION="0.3.7" |
pankso@190 | 5 CATEGORY="system-tools" |
pankso@137 | 6 SHORT_DESC="GTK partition editor." |
pankso@137 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@793 | 8 DEPENDS="gtk+ libsigc++ glibmm gtkmm parted hal" |
pankso@190 | 9 SUGGESTED="dosfstools ntfs-3g ntfprogs" |
pankso@190 | 10 BUILD_DEPENDS="gtk+-dev libsigc++-dev glibmm-dev gtkmm-dev parted-dev" |
pankso@137 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@137 | 12 WEB_SITE="http://gparted.sourceforge.net/" |
pankso@137 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@190 | 14 HANDBOOK_URL='http://www.slitaz.org/doc/handbook/system-tools.html#gparted' |
pankso@137 | 15 |
pankso@137 | 16 # Rules to configure and make the package. |
pankso@137 | 17 compile_rules() |
pankso@137 | 18 { |
pankso@137 | 19 cd $src |
pankso@137 | 20 ./configure \ |
pankso@137 | 21 --prefix=/usr \ |
pankso@137 | 22 $CONFIGURE_ARGS |
pankso@137 | 23 make |
pankso@137 | 24 make DESTDIR=$PWD/_pkg install |
pankso@137 | 25 } |
pankso@137 | 26 |
pankso@137 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@137 | 28 genpkg_rules() |
pankso@137 | 29 { |
pankso@190 | 30 mkdir -p $fs/usr |
pankso@793 | 31 cp -a $_pkg/usr/sbin $fs/usr |
pankso@827 | 32 sed -i s/'#!\/bin\/bash'/'#!\/bin\/sh'/ $fs/usr/sbin/gparted |
pankso@137 | 33 } |
pankso@793 | 34 |
pankso@793 | 35 # Version 0.3.7 - Binary has moved to /usr/sbin |
pankso@793 | 36 post_install() |
pankso@793 | 37 { |
pankso@793 | 38 local root |
pankso@793 | 39 root=$1 |
pankso@793 | 40 rm -f $root/usr/bin/gparted |
pankso@793 | 41 } |