wok-current view pybootchartgui/receipt @ rev 12672

gtk-gnutella: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 01 13:13:13 2012 +0200 (2012-05-01)
parents 255e56fcd6cf
children bf4a09ef1d2e
line source
1 # SliTaz package receipt.
3 PACKAGE="pybootchartgui"
4 VERSION="r124"
5 CATEGORY="misc"
6 SHORT_DESC="bootchart GUI in python"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="python pygtk bootchart"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://pybootchartgui.googlecode.com/"
11 WGET_URL="$WEB_SITE/files/$TARBALL"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
19 mkdir -p $fs/usr/lib/python$PY_VERSION $fs/usr/bin
20 cp -a $src/pybootchartgui.py $fs/usr/lib/python$PY_VERSION
21 cp -a $src/pybootchartgui $fs/usr/lib/python$PY_VERSION
24 }
26 post_install()
27 {
28 local root
29 root=$1
30 PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
31 if [ -f $root/usr/bin/pybootchartgui ] ; then rm $root/usr/bin/pybootchartgui ; fi
32 ln -s $root/usr/lib/python$PY_VERSION/pybootchartgui.py $root/usr/bin/pybootchartgui
33 if [ -f $root/etc/bootchartd.conf ] ; then
34 sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ $root/etc/bootchartd.conf
35 fi
36 }
38 post_remove()
39 {
40 local root
41 root=$1
42 rm $root/usr/bin/pybootchartgui
43 if [ -f $root/etc/bootchartd.conf ] ; then
44 sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ $root/etc/bootchartd.conf
45 fi
46 }