wok-4.x annotate pybootchartgui/receipt @ rev 4869

Add: xfmpc
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 04 22:43:13 2010 +0100 (2010-02-04)
parents
children 7677c6ea8e85
rev   line source
jozee@3218 1 # SliTaz package receipt.
jozee@3218 2
jozee@3218 3 PACKAGE="pybootchartgui"
jozee@3218 4 VERSION="r124"
jozee@3218 5 CATEGORY="misc"
jozee@3218 6 SHORT_DESC="bootchart GUI in python"
jozee@3218 7 MAINTAINER="jozee@slitaz.org"
jozee@3218 8 DEPENDS="python pygtk bootchart"
jozee@3218 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@3218 10 WEB_SITE="http://pybootchartgui.googlecode.com/"
jozee@3218 11 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@3218 12
jozee@3218 13
jozee@3218 14
jozee@3218 15 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3218 16 genpkg_rules()
jozee@3218 17 {
jozee@3218 18 PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
jozee@3218 19 mkdir -p $fs/usr/lib/python$PY_VERSION $fs/usr/bin
jozee@3218 20 cp -a $src/pybootchartgui.py $fs/usr/lib/python$PY_VERSION
jozee@3218 21 cp -a $src/pybootchartgui $fs/usr/lib/python$PY_VERSION
jozee@3218 22
jozee@3218 23
jozee@3218 24 }
jozee@3218 25
jozee@3218 26 post_install()
jozee@3218 27 {
jozee@3218 28 local root
jozee@3218 29 root=$1
jozee@3218 30 PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
jozee@3218 31 if [ -f $root/usr/bin/pybootchartgui ] ; then rm $root/usr/bin/pybootchartgui ; fi
jozee@3218 32 ln -s $root/usr/lib/python$PY_VERSION/pybootchartgui.py $root/usr/bin/pybootchartgui
jozee@3218 33 }
jozee@3218 34
jozee@3218 35 post_remove()
jozee@3218 36 {
jozee@3218 37 local root
jozee@3218 38 root=$1
jozee@3218 39 rm $root/usr/bin/pybootchartgui
jozee@3218 40 }