wok-6.x annotate obmenu/receipt @ 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 | |
children | 82a8e4f52224 |
rev | line source |
---|---|
paul@1568 | 1 # SliTaz package receipt. |
paul@1568 | 2 |
paul@1568 | 3 PACKAGE="obmenu" |
paul@1568 | 4 VERSION="1.0" |
paul@1568 | 5 CATEGORY="x-window" |
paul@1568 | 6 SHORT_DESC="Openbox menu editor." |
paul@1568 | 7 MAINTAINER="paul@slitaz.org" |
paul@1568 | 8 DEPENDS="python pycairo pygobject pygtk" |
paul@1568 | 9 BUILD_DEPENDS="python python-dev" |
paul@1568 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@1568 | 11 WEB_SITE="http://obmenu.sourceforge.net/index.html" |
paul@1568 | 12 WGET_URL="http://downloads.sourceforge.net/obmenu/$TARBALL" |
paul@1568 | 13 |
paul@1568 | 14 # Rules to configure and make the package. |
paul@1568 | 15 compile_rules() |
paul@1568 | 16 { |
paul@1568 | 17 cd $src |
paul@1568 | 18 python setup.py build |
paul@1568 | 19 python setup.py install --root=$PWD/_pkg |
paul@1568 | 20 } |
paul@1568 | 21 |
paul@1568 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@1568 | 23 genpkg_rules() |
paul@1568 | 24 { |
paul@1568 | 25 mkdir -p $fs/usr/share/pixmaps |
paul@1568 | 26 cp -a $_pkg/usr $fs |
paul@1568 | 27 cp $_pkg/usr/share/obmenu/mnu48.png $fs/usr/share/pixmaps |
paul@1568 | 28 } |
paul@1568 | 29 |
paul@1568 | 30 post_install() |
paul@1568 | 31 { |
paul@1568 | 32 echo -n "Enabling configuration file..." |
paul@1568 | 33 cp /home/tux/.config/openbox/menu.xml /root/.config/openbox |
paul@1568 | 34 status |
paul@1568 | 35 } |
paul@1568 | 36 |
paul@1568 | 37 post_remove() |
paul@1568 | 38 { |
paul@1568 | 39 echo -n "Removing configuration files..." |
paul@1568 | 40 rm /root/.config/openbox/menu.xml |
paul@1568 | 41 status |
paul@1568 | 42 } |