wok annotate bmpanel2/receipt @ rev 20257

Add giflossy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 23:27:32 2018 +0100 (2018-03-13)
parents 8d6f480bf664
children 6e8b1bcb30e2
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"
pascal@15482 7 LICENSE="MIT"
jozee@6821 8 SHORT_DESC="Nice NETWM-compatible panel for X11"
jozee@6821 9 WEB_SITE="http://bmpanel2.googlecode.com/"
jozee@6821 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@6821 11 WGET_URL="$WEB_SITE/files/$TARBALL"
al@17501 12 TAGS="panel"
jozee@6821 13
pascal@15142 14 DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
pascal@15142 15 BUILD_DEPENDS="cmake python-dev xorg-libXext-dev cairo-dev pango-dev"
pascal@15142 16
jozee@6821 17 # Rules to configure and make the package.
jozee@6821 18
jozee@6821 19 compile_rules() {
pascal@15142 20 cd $src
pascal@15142 21 # fix "with" statement for python 2.5
pascal@15142 22 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
pascal@15142 23 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
pascal@15142 24 make
pascal@15142 25 make DESTDIR=$DESTDIR install
jozee@6821 26 }
jozee@6821 27
jozee@6821 28 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6821 29 genpkg_rules()
jozee@6821 30 {
jozee@6821 31 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
pascal@15142 32 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
jozee@6821 33 # cp only native and transpy themes
pascal@15142 34 cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
pascal@15142 35 cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
jozee@6821 36
jozee@6821 37
jozee@6821 38 }