wok-next diff 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 |
line diff
1.1 --- a/bmpanel2/receipt Thu Jan 08 02:04:05 2015 +0200 1.2 +++ b/bmpanel2/receipt Fri Mar 30 21:22:54 2018 +0300 1.3 @@ -1,38 +1,47 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="bmpanel2" 1.8 VERSION="2.1pre1" 1.9 CATEGORY="misc" 1.10 +SHORT_DESC="Nice NETWM-compatible panel for X11" 1.11 MAINTAINER="jozee@slitaz.org" 1.12 LICENSE="MIT" 1.13 -SHORT_DESC="Nice NETWM-compatible panel for X11" 1.14 -WEB_SITE="http://bmpanel2.googlecode.com/" 1.15 +WEB_SITE="https://github.com/nsf/bmpanel2" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WGET_URL="$WEB_SITE/files/$TARBALL" 1.19 -TAGS="panel" 1.20 +WGET_URL="https://github.com/nsf/bmpanel2/archive/$VERSION.tar.gz" 1.21 1.22 -DEPENDS="pango cairo xorg-libX11 xorg-libXrender" 1.23 -BUILD_DEPENDS="cmake python-dev xorg-libXext-dev cairo-dev pango-dev" 1.24 - 1.25 -# Rules to configure and make the package. 1.26 +BUILD_DEPENDS="cmake xorg-libX11-dev cairo-dev pango-dev" 1.27 +SPLIT="bmpanel2-themes bmpanel2cfg" 1.28 1.29 compile_rules() { 1.30 - cd $src 1.31 # fix "with" statement for python 2.5 1.32 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py 1.33 - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . 1.34 - make 1.35 - make DESTDIR=$DESTDIR install 1.36 + 1.37 + mkdir build; cd build 1.38 + cmake \ 1.39 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.40 + -DCMAKE_BUILD_TYPE=RELEASE \ 1.41 + .. && 1.42 + make && 1.43 + make install 1.44 } 1.45 - 1.46 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 -genpkg_rules() 1.48 -{ 1.49 - mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin 1.50 - cp -a $install/usr/bin/$PACKAGE $fs/usr/bin 1.51 - # cp only native and transpy themes 1.52 - cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes 1.53 - cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes 1.54 - 1.55 - 1.56 + 1.57 +genpkg_rules() { 1.58 + case $PACKAGE in 1.59 + bmpanel2) 1.60 + copy bmpanel2 native/ transpy/ 1.61 + DEPENDS="cairo glib pango xorg-libX11 xorg-libXext" 1.62 + TAGS="panel" 1.63 + ;; 1.64 + bmpanel2-themes) 1.65 + copy themes/ @rm 1.66 + CAT="customization|themes" 1.67 + ;; 1.68 + bmpanel2cfg) 1.69 + copy bmpanel2cfg python2.7/ 1.70 + CAT="misc|configurator" 1.71 + DEPENDS="bmpanel2 pygtk" 1.72 + ;; 1.73 + esac 1.74 }