wok-6.x view obmenu/receipt @ rev 10807

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