wok view screenlets/receipt @ rev 14885

Up: python-kiwi (1.9.29)
author Claudinei Pereira <claudinei@slitaz.org>
date Wed Jul 24 18:59:52 2013 -0300 (2013-07-24)
parents
children 380ffe05937a
line source
1 # SliTaz package receipt.
3 PACKAGE="screenlets"
4 VERSION="0.1.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="Desktop widgets framework."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://screenlets.org"
10 WGET_URL="https://launchpad.net/screenlets/trunk/$VERSION/+download/$TARBALL"
12 DEPENDS="python pygtk python-xdg beautifulsoup gnome-python-desktop dbus-python gnome-icon-theme"
13 BUILD_DEPENDS="python-dev wget"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 python setup.py install --root=$install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/icons $fs/etc/screenlets
26 cp -a $install/usr/bin $fs/usr
27 cp -a $install/usr/lib $fs/usr
28 cp -a $install/usr/share/screenlets* $fs/usr/share
29 cp -a $install/usr/share/icons/hicolor $fs/usr/share/icons
30 echo '/usr' > $fs/etc/screenlets/prefix
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 echo "Processing post-install commands..."
37 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
38 }
40 post_remove()
41 {
42 echo "Processing post-remove commands..."
43 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
44 }