wok-6.x annotate bmpanel2/receipt @ rev 8470
Up: transmission to 2.20.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 07 16:36:59 2011 +0000 (2011-02-07) |
parents | |
children | 59009b1c6878 |
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 DEPENDS="pango cairo xorg-libX11 xorg-libXrender" |
jozee@6821 | 10 BUILD_DEPENDS="cmake pango-dev cairo-dev xorg-libX11-dev xorg-libXrender-dev python-dev" |
jozee@6821 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@6821 | 12 WGET_URL="$WEB_SITE/files/$TARBALL" |
jozee@6821 | 13 TAGS="panel window-manager wm" |
jozee@6821 | 14 |
jozee@6821 | 15 # Rules to configure and make the package. |
jozee@6821 | 16 |
jozee@6821 | 17 compile_rules() { |
jozee@6821 | 18 cd $src |
jozee@6821 | 19 # fix "with" statement for python 2.5 |
jozee@6821 | 20 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py |
jozee@6821 | 21 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . |
jozee@6821 | 22 make |
jozee@6821 | 23 make DESTDIR=$PWD/_pkg/ install |
jozee@6821 | 24 } |
jozee@6821 | 25 |
jozee@6821 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@6821 | 27 genpkg_rules() |
jozee@6821 | 28 { |
jozee@6821 | 29 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin |
jozee@6821 | 30 cp -a $_pkg/usr/bin/$PACKAGE $fs/usr/bin |
jozee@6821 | 31 # cp only native and transpy themes |
jozee@6821 | 32 cp -a $_pkg/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes |
jozee@6821 | 33 cp -a $_pkg/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes |
jozee@6821 | 34 |
jozee@6821 | 35 |
jozee@6821 | 36 } |