wok-current annotate pybootchartgui/receipt @ rev 19960
qemu: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 15:59:50 2017 +0200 (2017-05-20) |
parents | 9e01bc6321ea |
children | aa1584474883 |
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" |
jozee@3218 | 10 WEB_SITE="http://pybootchartgui.googlecode.com/" |
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 } |