wok view screenlets/receipt @ rev 21989

fasm: build fasmarm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 15 18:06:41 2019 +0200 (2019-10-15)
parents 9b3e5f996086
children 86c657b651d4
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"
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 }