wok annotate pybootchartgui/receipt @ rev 21571
updated cacerts (20170224 -> 20190517)
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 18 16:52:54 2019 +0100 (2019-05-18) |
parents | ed8073aa8cf0 |
children | 34e801e0eb52 |
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" |
pascal@15376 | 8 LICENSE="GPL3" |
jozee@3218 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20683 | 10 WEB_SITE="https://github.com/kraj/poky/tree/master/scripts/pybootchartgui" |
jozee@3218 | 11 WGET_URL="$WEB_SITE/files/$TARBALL" |
jozee@3218 | 12 |
pascal@15376 | 13 DEPENDS="python pygtk bootchart" |
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 { |
pascal@18730 | 28 PY_VERSION=$(cat "$1/var/lib/tazpkg/installed/python/receipt" | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2) |
pascal@18730 | 29 if [ -f "$1/usr/bin/pybootchartgui" ] ; then rm "$1/usr/bin/pybootchartgui" ; fi |
pascal@18732 | 30 ln -s /usr/lib/python$PY_VERSION/pybootchartgui.py "$1/usr/bin/pybootchartgui" |
pascal@18730 | 31 if [ -f "$1/etc/bootchartd.conf" ] ; then |
pascal@18730 | 32 sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ "$1/etc/bootchartd.conf" |
jozee@4964 | 33 fi |
jozee@3218 | 34 } |
jozee@3218 | 35 |
jozee@3218 | 36 post_remove() |
jozee@3218 | 37 { |
pascal@18730 | 38 rm "$1/usr/bin/pybootchartgui" |
pascal@18730 | 39 if [ -f "$1/etc/bootchartd.conf" ] ; then |
pascal@18730 | 40 sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ "$1/etc/bootchartd.conf" |
pascal@18730 | 41 fi |
jozee@3218 | 42 } |