wok-next annotate bmpanel2/receipt @ rev 20536

gnome-mplayer: up (1.0.8)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 21:22:54 2018 +0300 (2018-03-30)
parents 5d53e8ccbc8d
children b156aee559a7
rev   line source
al@20333 1 # SliTaz package receipt v2.
jozee@6821 2
jozee@6821 3 PACKAGE="bmpanel2"
jozee@6821 4 VERSION="2.1pre1"
jozee@6821 5 CATEGORY="misc"
al@20333 6 SHORT_DESC="Nice NETWM-compatible panel for X11"
jozee@6821 7 MAINTAINER="jozee@slitaz.org"
pascal@15482 8 LICENSE="MIT"
al@20333 9 WEB_SITE="https://github.com/nsf/bmpanel2"
al@20333 10
jozee@6821 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20333 12 WGET_URL="https://github.com/nsf/bmpanel2/archive/$VERSION.tar.gz"
jozee@6821 13
al@20333 14 BUILD_DEPENDS="cmake xorg-libX11-dev cairo-dev pango-dev"
al@20333 15 SPLIT="bmpanel2-themes bmpanel2cfg"
jozee@6821 16
jozee@6821 17 compile_rules() {
pascal@15142 18 # fix "with" statement for python 2.5
pascal@15142 19 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
al@20333 20
al@20333 21 mkdir build; cd build
al@20333 22 cmake \
al@20333 23 -DCMAKE_INSTALL_PREFIX=/usr \
al@20333 24 -DCMAKE_BUILD_TYPE=RELEASE \
al@20333 25 .. &&
al@20333 26 make &&
al@20333 27 make install
jozee@6821 28 }
al@20333 29
al@20333 30 genpkg_rules() {
al@20333 31 case $PACKAGE in
al@20333 32 bmpanel2)
al@20333 33 copy bmpanel2 native/ transpy/
al@20333 34 DEPENDS="cairo glib pango xorg-libX11 xorg-libXext"
al@20333 35 TAGS="panel"
al@20333 36 ;;
al@20333 37 bmpanel2-themes)
al@20333 38 copy themes/ @rm
al@20333 39 CAT="customization|themes"
al@20333 40 ;;
al@20333 41 bmpanel2cfg)
al@20333 42 copy bmpanel2cfg python2.7/
al@20333 43 CAT="misc|configurator"
al@20333 44 DEPENDS="bmpanel2 pygtk"
al@20333 45 ;;
al@20333 46 esac
jozee@6821 47 }