wok-4.x view bmpanel2/receipt @ rev 11037

slock: Clean up.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Oct 16 07:26:33 2011 +0000 (2011-10-16)
parents 8347a77cb78e
children
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 python-dev xorg-libXext-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 }