wok-next view bmpanel2/receipt @ rev 8542
Up: lvm2 to 2.02.84.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Feb 13 14:12:37 2011 +0000 (2011-02-13) |
parents | |
children | 59009b1c6878 |
line source
1 # SliTaz package receipt.
3 PACKAGE="bmpanel2"
4 VERSION="2.1pre1"
5 CATEGORY="misc"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Nice NETWM-compatible panel for X11"
8 WEB_SITE="http://bmpanel2.googlecode.com/"
9 DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
10 BUILD_DEPENDS="cmake pango-dev cairo-dev xorg-libX11-dev xorg-libXrender-dev python-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/files/$TARBALL"
13 TAGS="panel window-manager wm"
15 # Rules to configure and make the package.
17 compile_rules() {
18 cd $src
19 # fix "with" statement for python 2.5
20 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
21 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
22 make
23 make DESTDIR=$PWD/_pkg/ install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
30 cp -a $_pkg/usr/bin/$PACKAGE $fs/usr/bin
31 # cp only native and transpy themes
32 cp -a $_pkg/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
33 cp -a $_pkg/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
36 }