wok annotate bmpanel2/receipt @ rev 25624
Add opendkim
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 08 16:45:57 2023 +0000 (12 months ago) |
parents | e1e1678c5265 |
children |
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" |
pascal@20671 | 9 WEB_SITE="https://github.com/nsf/bmpanel2" |
jozee@6821 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24974 | 11 WGET_URL="$WEB_SITE/archive/refs/tags/$VERSION.tar.gz" |
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 |
pascal@25597 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@25597 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25597 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
jozee@6821 | 24 # Rules to configure and make the package. |
jozee@6821 | 25 compile_rules() { |
pascal@15142 | 26 cd $src |
pascal@15142 | 27 # fix "with" statement for python 2.5 |
pascal@15142 | 28 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py |
pascal@15142 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . |
pascal@15142 | 30 make |
pascal@15142 | 31 make DESTDIR=$DESTDIR install |
jozee@6821 | 32 } |
jozee@6821 | 33 |
jozee@6821 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@6821 | 35 genpkg_rules() |
jozee@6821 | 36 { |
jozee@6821 | 37 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin |
pascal@15142 | 38 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin |
jozee@6821 | 39 # cp only native and transpy themes |
pascal@15142 | 40 cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes |
pascal@15142 | 41 cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes |
jozee@6821 | 42 |
jozee@6821 | 43 |
jozee@6821 | 44 } |