wok view pybootchartgui/receipt @ rev 21083

updated joe (3.7 -> 4.6)
author Hans-G?nter Theisgen
date Fri Mar 15 13:54:40 2019 +0100 (2019-03-15)
parents ed8073aa8cf0
children 34e801e0eb52
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 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/kraj/poky/tree/master/scripts/pybootchartgui"
11 WGET_URL="$WEB_SITE/files/$TARBALL"
13 DEPENDS="python pygtk bootchart"
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 PY_VERSION=$(cat "$1/var/lib/tazpkg/installed/python/receipt" | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2)
29 if [ -f "$1/usr/bin/pybootchartgui" ] ; then rm "$1/usr/bin/pybootchartgui" ; fi
30 ln -s /usr/lib/python$PY_VERSION/pybootchartgui.py "$1/usr/bin/pybootchartgui"
31 if [ -f "$1/etc/bootchartd.conf" ] ; then
32 sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ "$1/etc/bootchartd.conf"
33 fi
34 }
36 post_remove()
37 {
38 rm "$1/usr/bin/pybootchartgui"
39 if [ -f "$1/etc/bootchartd.conf" ] ; then
40 sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ "$1/etc/bootchartd.conf"
41 fi
42 }