wok-undigest annotate bmpanel2/receipt @ rev 170

edit docbook-xsl-ns
author Paul Issott <paul@slitaz.org>
date Sat Sep 11 21:59:53 2010 +0000 (2010-09-11)
parents
children
rev   line source
jozee@50 1 # SliTaz package receipt.
jozee@50 2
jozee@50 3 PACKAGE="bmpanel2"
jozee@50 4 VERSION="2.1pre1"
jozee@50 5 CATEGORY="misc"
jozee@50 6 MAINTAINER="jozee@slitaz.org"
jozee@50 7 SHORT_DESC="Nice NETWM-compatible panel for X11"
jozee@50 8 WEB_SITE="http://bmpanel2.googlecode.com/"
jozee@50 9 DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
jozee@50 10 BUILD_DEPENDS="cmake pango-dev cairo-dev xorg-libX11-dev xorg-libXrender-dev python-dev"
jozee@50 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@50 12 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@50 13 TAGS="panel window-manager wm"
jozee@50 14
jozee@50 15 # Rules to configure and make the package.
jozee@50 16
jozee@50 17 compile_rules() {
jozee@50 18 cd $src
jozee@50 19 # fix "with" statement for python 2.5
jozee@50 20 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
jozee@50 21 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
jozee@50 22 make
jozee@50 23 make DESTDIR=$PWD/_pkg/ install
jozee@50 24 }
jozee@50 25
jozee@50 26 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@50 27 genpkg_rules()
jozee@50 28 {
jozee@50 29 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
jozee@50 30 cp -a $_pkg/usr/bin/$PACKAGE $fs/usr/bin
jozee@50 31 # cp only native and transpy themes
jozee@50 32 cp -a $_pkg/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
jozee@50 33 cp -a $_pkg/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
jozee@50 34
jozee@50 35
jozee@50 36 }