wok-next diff obmenu/receipt @ rev 20715
Up nsd (4.1.21)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 13:10:46 2018 +0300 (2018-05-27) |
parents | 9e01bc6321ea |
children | de355b69ea82 |
line diff
1.1 --- a/obmenu/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/obmenu/receipt Sun May 27 13:10:46 2018 +0300 1.3 @@ -1,44 +1,35 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="obmenu" 1.8 VERSION="1.0" 1.9 CATEGORY="x-window" 1.10 -SHORT_DESC="Openbox menu editor." 1.11 +SHORT_DESC="Openbox menu editor" 1.12 MAINTAINER="paul@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://obmenu.sourceforge.net/index.html" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://obmenu.sourceforge.net/index.html" 1.18 WGET_URL="http://downloads.sourceforge.net/obmenu/$TARBALL" 1.19 -TAGS="openbox" 1.20 1.21 -DEPENDS="python pycairo pygobject pygtk libffi" 1.22 BUILD_DEPENDS="python python-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - python setup.py build 1.28 +compile_rules() { 1.29 + python setup.py build && 1.30 python setup.py install --root=$DESTDIR 1.31 } 1.32 1.33 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 -genpkg_rules() 1.35 -{ 1.36 - mkdir -p $fs/usr/share/pixmaps 1.37 - cp -a $install/usr $fs 1.38 - cp $install/usr/share/obmenu/mnu48.png $fs/usr/share/pixmaps 1.39 +genpkg_rules() { 1.40 + copy @std 1.41 + DEPENDS="python pycairo pygobject pygtk libffi" 1.42 + TAGS="openbox" 1.43 } 1.44 1.45 -post_install() 1.46 -{ 1.47 - echo -n "Enabling configuration file..." 1.48 +post_install() { 1.49 + # Enabling configuration file 1.50 cp "$1/home/tux/.config/openbox/menu.xml" "$1/root/.config/openbox" 1.51 - status 1.52 } 1.53 1.54 -post_remove() 1.55 -{ 1.56 - echo -n "Removing configuration files..." 1.57 +post_remove() { 1.58 + # Removing configuration file 1.59 rm "$1/root/.config/openbox/menu.xml" 1.60 - status 1.61 }