wok-6.x annotate obmenu/receipt @ rev 11066

Up: b43-fwcutter to 015.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Oct 17 00:44:16 2011 +0000 (2011-10-17)
parents 82a8e4f52224
children 600aaedb561d
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"
jozee@4970 13 TAGS="openbox"
paul@1568 14
paul@1568 15 # Rules to configure and make the package.
paul@1568 16 compile_rules()
paul@1568 17 {
paul@1568 18 cd $src
paul@1568 19 python setup.py build
paul@1568 20 python setup.py install --root=$PWD/_pkg
paul@1568 21 }
paul@1568 22
paul@1568 23 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@1568 24 genpkg_rules()
paul@1568 25 {
paul@1568 26 mkdir -p $fs/usr/share/pixmaps
paul@1568 27 cp -a $_pkg/usr $fs
paul@1568 28 cp $_pkg/usr/share/obmenu/mnu48.png $fs/usr/share/pixmaps
paul@1568 29 }
paul@1568 30
paul@1568 31 post_install()
paul@1568 32 {
paul@1568 33 echo -n "Enabling configuration file..."
paul@1568 34 cp /home/tux/.config/openbox/menu.xml /root/.config/openbox
paul@1568 35 status
paul@1568 36 }
paul@1568 37
paul@1568 38 post_remove()
paul@1568 39 {
paul@1568 40 echo -n "Removing configuration files..."
paul@1568 41 rm /root/.config/openbox/menu.xml
paul@1568 42 status
paul@1568 43 }