wok rev 6821

Add bmpanel2: mv from undigest
author Rohit Joshi <jozee@slitaz.org>
date Tue Oct 19 20:58:11 2010 -0400 (2010-10-19)
parents 0d39b71a9c8c
children c6ae74b43fce
files bmpanel2/receipt bmpanel2cfg/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bmpanel2/receipt	Tue Oct 19 20:58:11 2010 -0400
     1.3 @@ -0,0 +1,36 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="bmpanel2"
     1.7 +VERSION="2.1pre1"
     1.8 +CATEGORY="misc"
     1.9 +MAINTAINER="jozee@slitaz.org"
    1.10 +SHORT_DESC="Nice NETWM-compatible panel for X11"
    1.11 +WEB_SITE="http://bmpanel2.googlecode.com/"
    1.12 +DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
    1.13 +BUILD_DEPENDS="cmake pango-dev  cairo-dev  xorg-libX11-dev  xorg-libXrender-dev python-dev"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="$WEB_SITE/files/$TARBALL"
    1.16 +TAGS="panel window-manager wm"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +
    1.20 +compile_rules() {
    1.21 +  cd $src
    1.22 +  # fix "with" statement for python 2.5
    1.23 +  sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
    1.24 +  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . 
    1.25 +  make 
    1.26 +  make DESTDIR=$PWD/_pkg/ install
    1.27 +}
    1.28 +	
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
    1.33 +	cp -a $_pkg/usr/bin/$PACKAGE $fs/usr/bin
    1.34 +		# cp only native and transpy themes
    1.35 +	cp -a $_pkg/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
    1.36 +	cp -a $_pkg/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
    1.37 +	
    1.38 +	
    1.39 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/bmpanel2cfg/receipt	Tue Oct 19 20:58:11 2010 -0400
     2.3 @@ -0,0 +1,20 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="bmpanel2cfg"
     2.7 +VERSION="2.1pre1"
     2.8 +CATEGORY="misc"
     2.9 +MAINTAINER="jozee@slitaz.org"
    2.10 +SHORT_DESC="bmpanel2 configurator"
    2.11 +WEB_SITE="http://bmpanel2.googlecode.com/"
    2.12 +DEPENDS="pygtk"
    2.13 +WANTED="bmpanel2"
    2.14 +TAGS="window-manager wm panel"
    2.15 +
    2.16 +	
    2.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.18 +genpkg_rules()
    2.19 +{
    2.20 +	mkdir -p $fs/usr/lib $fs/usr/bin
    2.21 +	cp -a $_pkg/usr/bin/$PACKAGE $fs/usr/bin
    2.22 +	cp -a $_pkg/usr/lib/python* $fs/usr/lib		
    2.23 +}