wok-next view bmpanel2/receipt @ rev 21360
guacamole: inserted fix libtool
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 13 06:41:39 2020 +0100 (2020-04-13) |
parents | 5669e8b3be70 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bmpanel2"
4 VERSION="2.1pre1"
5 CATEGORY="misc"
6 SHORT_DESC="Nice NETWM-compatible panel for X11"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/nsf/bmpanel2"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/nsf/bmpanel2/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="cmake libx11-dev cairo-dev pango-dev"
15 SPLIT="$PACKAGE-themes bmpanel2cfg"
17 compile_rules() {
18 # fix "with" statement for python 2.5
19 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/$PACKAGE.py
21 mkdir build; cd build
22 cmake \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DCMAKE_BUILD_TYPE=RELEASE \
25 .. &&
26 make &&
27 make install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 bmpanel2)
33 copy bmpanel2 native/ transpy/
34 DEPENDS="libcairo glib pango libx11 libxext"
35 TAGS="panel"
36 ;;
37 bmpanel2-themes)
38 copy themes/ @rm
39 CAT="customization|themes"
40 ;;
41 bmpanel2cfg)
42 copy bmpanel2cfg python2.7/
43 CAT="misc|configurator"
44 DEPENDS="bmpanel2 python python-pygtk"
45 ;;
46 esac
47 }