wok-next diff screenlets/receipt @ rev 20859
Update ALSA stack (1.1.6)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 27 13:35:43 2018 +0300 (2018-06-27) |
parents | 7390f8de9846 |
children | 6e83df33a44f |
line diff
1.1 --- a/screenlets/receipt Sat May 23 16:17:14 2015 +0300 1.2 +++ b/screenlets/receipt Wed Jun 27 13:35:43 2018 +0300 1.3 @@ -1,43 +1,35 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="screenlets" 1.8 VERSION="0.1.6" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="Desktop widgets framework." 1.11 +SHORT_DESC="Desktop widgets framework" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://screenlets.org" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://screenlets.org" 1.18 WGET_URL="https://launchpad.net/screenlets/trunk/$VERSION/+download/$TARBALL" 1.19 1.20 -DEPENDS="python pygtk python-xdg beautifulsoup gnome-python-desktop \ 1.21 -dbus-python gnome-icon-theme" 1.22 -BUILD_DEPENDS="python-dev wget" 1.23 +BUILD_DEPENDS="python-dev gettext" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - python setup.py install --root=$install 1.29 +compile_rules() { 1.30 + python setup.py install --root=$install || return 1 1.31 + 1.32 + mkdir -p $install/etc/screenlets/ 1.33 + echo '/usr' > $install/etc/screenlets/prefix 1.34 } 1.35 1.36 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 -genpkg_rules() 1.38 -{ 1.39 - mkdir -p $fs/usr/share/icons $fs/etc/screenlets 1.40 - cp -a $install/usr/bin $fs/usr 1.41 - cp -a $install/usr/lib $fs/usr 1.42 - cp -a $install/usr/share/screenlets* $fs/usr/share 1.43 - cp -a $install/usr/share/icons/hicolor $fs/usr/share/icons 1.44 - echo '/usr' > $fs/etc/screenlets/prefix 1.45 +genpkg_rules() { 1.46 + copy @std 1.47 + DEPENDS="python pygtk python-xdg beautifulsoup gnome-python-desktop \ 1.48 + dbus-python gnome-icon-theme" 1.49 } 1.50 1.51 -# Post install/remove commands for Tazpkg. 1.52 -post_install() 1.53 -{ 1.54 +post_install() { 1.55 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache 1.56 } 1.57 1.58 -post_remove() 1.59 -{ 1.60 +post_remove() { 1.61 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache 1.62 }