wok diff pybootchartgui/receipt @ rev 3260

Update gphoto2 DEPENDS
author Rohit Joshi <jozee@slitaz.org>
date Mon Jun 01 10:36:31 2009 +0000 (2009-06-01)
parents
children 7677c6ea8e85
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pybootchartgui/receipt	Mon Jun 01 10:36:31 2009 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pybootchartgui"
     1.7 +VERSION="r124"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="bootchart GUI in python"
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +DEPENDS="python pygtk bootchart"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://pybootchartgui.googlecode.com/"
    1.14 +WGET_URL="$WEB_SITE/files/$TARBALL"
    1.15 +
    1.16 +
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +    PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
    1.22 +	mkdir -p $fs/usr/lib/python$PY_VERSION $fs/usr/bin
    1.23 +    cp -a $src/pybootchartgui.py $fs/usr/lib/python$PY_VERSION
    1.24 +	cp -a $src/pybootchartgui $fs/usr/lib/python$PY_VERSION
    1.25 +	
    1.26 +	
    1.27 +}
    1.28 +
    1.29 +post_install()
    1.30 +{
    1.31 +	local root
    1.32 +	root=$1
    1.33 +	PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
    1.34 +	if [ -f  $root/usr/bin/pybootchartgui ] ; then rm $root/usr/bin/pybootchartgui ; fi
    1.35 +	ln -s $root/usr/lib/python$PY_VERSION/pybootchartgui.py $root/usr/bin/pybootchartgui
    1.36 +}
    1.37 +
    1.38 +post_remove()
    1.39 +{
    1.40 +	local root
    1.41 +	root=$1
    1.42 +    rm $root/usr/bin/pybootchartgui
    1.43 +}