wok-stable rev 1568

Add: Obmenu (Openbox Menu Editor)
author Paul Issott <paul@slitaz.org>
date Mon Oct 13 22:10:10 2008 +0000 (2008-10-13)
parents 6fd8242e9be0
children ff7fba94d312
files obmenu/receipt obmenu/stuff/obmenu.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/obmenu/receipt	Mon Oct 13 22:10:10 2008 +0000
     1.3 @@ -0,0 +1,42 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="obmenu"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Openbox menu editor."
    1.10 +MAINTAINER="paul@slitaz.org"
    1.11 +DEPENDS="python pycairo pygobject pygtk"
    1.12 +BUILD_DEPENDS="python python-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://obmenu.sourceforge.net/index.html"
    1.15 +WGET_URL="http://downloads.sourceforge.net/obmenu/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	python setup.py build
    1.22 +	python setup.py install --root=$PWD/_pkg
    1.23 +}
    1.24 +
    1.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 +genpkg_rules()
    1.27 +{
    1.28 +	mkdir -p $fs/usr/share/pixmaps
    1.29 +	cp -a $_pkg/usr $fs
    1.30 +	cp $_pkg/usr/share/obmenu/mnu48.png $fs/usr/share/pixmaps
    1.31 +}
    1.32 +
    1.33 +post_install()
    1.34 +{
    1.35 +	echo -n "Enabling configuration file..."
    1.36 +	cp /home/tux/.config/openbox/menu.xml /root/.config/openbox
    1.37 +	status
    1.38 +}
    1.39 +
    1.40 +post_remove()
    1.41 +{
    1.42 +	echo -n "Removing configuration files..."
    1.43 +	rm /root/.config/openbox/menu.xml
    1.44 +	status
    1.45 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/obmenu/stuff/obmenu.desktop	Mon Oct 13 22:10:10 2008 +0000
     2.3 @@ -0,0 +1,13 @@
     2.4 +[Desktop Entry]
     2.5 +Encoding=UTF-8
     2.6 +Type=Application
     2.7 +Name=Openbox Menu Editor
     2.8 +Name[fr]=Openbox editor de menu
     2.9 +Comment=Edits Openbox menus
    2.10 +Comment[fr]=Openbox edite les menus
    2.11 +Icon=mnu48.png
    2.12 +Exec=obmenu
    2.13 +Categories=Settings;DesktopSettings;GTK;
    2.14 +MimeType=application/x-openbox-theme
    2.15 +StartupNotify=true
    2.16 +Terminal=false