wok-current view screenlets/receipt @ rev 24345

azpainter: added build dependency tiff-dev
author Hans-G?nter Theisgen
date Wed Feb 02 09:55:35 2022 +0100 (2022-02-02)
parents a478cfac043d
children 1bd2c6414e5a
line source
1 # SliTaz package receipt.
3 PACKAGE="screenlets"
4 VERSION="0.1.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Desktop widgets framework."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://launchpad.net/screenlets/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://launchpad.net/screenlets/trunk/$VERSION/+download/$TARBALL"
14 DEPENDS="beautifulsoup dbus-python gnome-icon-theme gnome-python-desktop \
15 pygtk python python-xdg gdk-pixbuf"
16 BUILD_DEPENDS="python-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 python setup.py install --root=$install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/icons
28 mkdir -p $fs/etc/screenlets
30 cp -a $install/usr/bin $fs/usr
31 cp -a $install/usr/lib $fs/usr
32 cp -a $install/usr/share/screenlets* $fs/usr/share
33 cp -a $install/usr/share/icons/hicolor $fs/usr/share/icons
34 echo '/usr' > $fs/etc/screenlets/prefix
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
41 }
43 post_remove()
44 {
45 [ -x "$1/usr/bin/gdk-pixbuf-query-loaders" ] &&
46 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
47 }