wok-6.x view screenlets/receipt @ rev 24573
updated freetype and freetype-dev (2.10.2 -> 2.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 07:45:56 2022 +0100 (2022-02-27) |
parents | 86c657b651d4 |
children |
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/Latest version is/!d;s|.*is ||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root=$install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/icons
35 mkdir -p $fs/etc/screenlets
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 cp -a $install/usr/share/screenlets* $fs/usr/share
40 cp -a $install/usr/share/icons/hicolor $fs/usr/share/icons
41 echo '/usr' > $fs/etc/screenlets/prefix
42 }
44 # Post install/remove commands for Tazpkg.
45 post_install()
46 {
47 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
48 }
50 post_remove()
51 {
52 [ -x "$1/usr/bin/gdk-pixbuf-query-loaders" ] &&
53 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
54 }