wok-4.x annotate obmenu/receipt @ rev 4654
openvas-scanner: build certificate
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 27 18:11:20 2009 +0100 (2009-12-27) |
parents | 71183fd70c31 |
children | 6ec17b55b59a |
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@4366 | 8 DEPENDS="python pycairo pygobject pygtk libffi" |
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 } |