wok view pybootchartgui/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | d765616e1f3d |
children |
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="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$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 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;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 }