wok annotate bmpanel2/receipt @ rev 15425

Up: thunderbird-langpack-pt_PT (17.0.9esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 03 21:52:50 2013 +0100 (2013-11-03)
parents 59009b1c6878
children 8d6f480bf664
rev   line source
jozee@6821 1 # SliTaz package receipt.
jozee@6821 2
jozee@6821 3 PACKAGE="bmpanel2"
jozee@6821 4 VERSION="2.1pre1"
jozee@6821 5 CATEGORY="misc"
jozee@6821 6 MAINTAINER="jozee@slitaz.org"
jozee@6821 7 SHORT_DESC="Nice NETWM-compatible panel for X11"
jozee@6821 8 WEB_SITE="http://bmpanel2.googlecode.com/"
jozee@6821 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@6821 10 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@6821 11 TAGS="panel window-manager wm"
jozee@6821 12
pascal@15142 13 DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
pascal@15142 14 BUILD_DEPENDS="cmake python-dev xorg-libXext-dev cairo-dev pango-dev"
pascal@15142 15
jozee@6821 16 # Rules to configure and make the package.
jozee@6821 17
jozee@6821 18 compile_rules() {
pascal@15142 19 cd $src
pascal@15142 20 # fix "with" statement for python 2.5
pascal@15142 21 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
pascal@15142 22 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
pascal@15142 23 make
pascal@15142 24 make DESTDIR=$DESTDIR install
jozee@6821 25 }
jozee@6821 26
jozee@6821 27 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6821 28 genpkg_rules()
jozee@6821 29 {
jozee@6821 30 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
pascal@15142 31 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
jozee@6821 32 # cp only native and transpy themes
pascal@15142 33 cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
pascal@15142 34 cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
jozee@6821 35
jozee@6821 36
jozee@6821 37 }