# HG changeset patch # User Rohit Joshi # Date 1243514980 0 # Node ID 255e56fcd6cf53ecc92ad44c311b341b8525ee1f # Parent a60208fea30c89343b943b5f499c73ef684323bd Add pybootchartgui diff -r a60208fea30c -r 255e56fcd6cf pybootchartgui/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pybootchartgui/receipt Thu May 28 12:49:40 2009 +0000 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="pybootchartgui" +VERSION="r124" +CATEGORY="misc" +SHORT_DESC="bootchart GUI in python" +MAINTAINER="jozee@slitaz.org" +DEPENDS="python pygtk bootchart" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://pybootchartgui.googlecode.com/" +WGET_URL="$WEB_SITE/files/$TARBALL" + + + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2` + mkdir -p $fs/usr/lib/python$PY_VERSION $fs/usr/bin + cp -a $src/pybootchartgui.py $fs/usr/lib/python$PY_VERSION + cp -a $src/pybootchartgui $fs/usr/lib/python$PY_VERSION + + +} + +post_install() +{ + local root + root=$1 + PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2` + if [ -f $root/usr/bin/pybootchartgui ] ; then rm $root/usr/bin/pybootchartgui ; fi + ln -s $root/usr/lib/python$PY_VERSION/pybootchartgui.py $root/usr/bin/pybootchartgui +} + +post_remove() +{ + local root + root=$1 + rm $root/usr/bin/pybootchartgui +}