wok-current view pybootchartgui/receipt @ rev 24903
updated mercurial (5.3.1 -> 6.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 11:10:54 2022 +0100 (2022-04-09) |
parents | aa1584474883 |
children | e1e1678c5265 |
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 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://github.com/kraj/poky/commits/master 2>/dev/null | \
19 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
26 mkdir -p $fs/usr/lib/python$PY_VERSION $fs/usr/bin
27 cp -a $src/pybootchartgui.py $fs/usr/lib/python$PY_VERSION
28 cp -a $src/pybootchartgui $fs/usr/lib/python$PY_VERSION
31 }
33 post_install()
34 {
35 PY_VERSION=$(cat "$1/var/lib/tazpkg/installed/python/receipt" | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2)
36 if [ -f "$1/usr/bin/pybootchartgui" ] ; then rm "$1/usr/bin/pybootchartgui" ; fi
37 ln -s /usr/lib/python$PY_VERSION/pybootchartgui.py "$1/usr/bin/pybootchartgui"
38 if [ -f "$1/etc/bootchartd.conf" ] ; then
39 sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ "$1/etc/bootchartd.conf"
40 fi
41 }
43 post_remove()
44 {
45 rm "$1/usr/bin/pybootchartgui"
46 if [ -f "$1/etc/bootchartd.conf" ] ; then
47 sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ "$1/etc/bootchartd.conf"
48 fi
49 }