wok-current annotate screenlets/receipt @ rev 25727

Add miss stuff folder for libxml++, dbus-c++
author Stanislas Leduc <shann@slitaz.org>
date Tue Nov 05 13:46:37 2024 +0000 (4 weeks ago)
parents 86c657b651d4
children
rev   line source
pascal@12973 1 # SliTaz package receipt.
pascal@12973 2
pascal@12973 3 PACKAGE="screenlets"
Hans-G?nter@21891 4 VERSION="0.1.7"
pascal@12973 5 CATEGORY="system-tools"
pascal@12973 6 SHORT_DESC="Desktop widgets framework."
pascal@12973 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21891 9 WEB_SITE="https://launchpad.net/screenlets/"
Hans-G?nter@21891 10
pascal@12973 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@12973 12 WGET_URL="https://launchpad.net/screenlets/trunk/$VERSION/+download/$TARBALL"
pascal@12973 13
Hans-G?nter@21891 14 DEPENDS="beautifulsoup dbus-python gnome-icon-theme gnome-python-desktop \
pascal@24113 15 pygtk python python-xdg gdk-pixbuf"
Hans-G?nter@21891 16 BUILD_DEPENDS="python-dev"
pascal@12973 17
pascal@24434 18 # What is the latest version available today?
pascal@24434 19 current_version()
pascal@24434 20 {
pascal@24434 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24434 22 sed '/Latest version is/!d;s|.*is ||'
pascal@24434 23 }
pascal@24434 24
pascal@12973 25 # Rules to configure and make the package.
pascal@12973 26 compile_rules()
pascal@12973 27 {
pascal@12973 28 python setup.py install --root=$install
pascal@12973 29 }
pascal@12973 30
pascal@12973 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12973 32 genpkg_rules()
pascal@12973 33 {
Hans-G?nter@21891 34 mkdir -p $fs/usr/share/icons
Hans-G?nter@21891 35 mkdir -p $fs/etc/screenlets
Hans-G?nter@21891 36
Hans-G?nter@21891 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21891 38 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21891 39 cp -a $install/usr/share/screenlets* $fs/usr/share
Hans-G?nter@21891 40 cp -a $install/usr/share/icons/hicolor $fs/usr/share/icons
pascal@12973 41 echo '/usr' > $fs/etc/screenlets/prefix
pascal@12973 42 }
pascal@12973 43
pascal@12973 44 # Post install/remove commands for Tazpkg.
pascal@12973 45 post_install()
pascal@12973 46 {
al@18086 47 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
pascal@12973 48 }
pascal@12973 49
pascal@12973 50 post_remove()
pascal@12973 51 {
pascal@19890 52 [ -x "$1/usr/bin/gdk-pixbuf-query-loaders" ] &&
al@18086 53 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
pascal@12973 54 }