wok-next view bmpanel2/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 5d53e8ccbc8d |
children | b156aee559a7 |
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="jozee@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 xorg-libX11-dev cairo-dev pango-dev"
15 SPLIT="bmpanel2-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="cairo glib pango xorg-libX11 xorg-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 pygtk"
45 ;;
46 esac
47 }