wok annotate bmpanel2/receipt @ rev 24486

updated djvulibre and djvulibre-dev (3.5.27 -> 3.5.28)
author Hans-G?nter Theisgen
date Fri Feb 18 16:54:18 2022 +0100 (2022-02-18)
parents 5ea0ce1cecc0
children e1e1678c5265
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"
jozee@6821 11 WGET_URL="$WEB_SITE/files/$TARBALL"
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@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/file*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
jozee@6821 23 # Rules to configure and make the package.
jozee@6821 24 compile_rules() {
pascal@15142 25 cd $src
pascal@15142 26 # fix "with" statement for python 2.5
pascal@15142 27 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
pascal@15142 28 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
pascal@15142 29 make
pascal@15142 30 make DESTDIR=$DESTDIR install
jozee@6821 31 }
jozee@6821 32
jozee@6821 33 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6821 34 genpkg_rules()
jozee@6821 35 {
jozee@6821 36 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
pascal@15142 37 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
jozee@6821 38 # cp only native and transpy themes
pascal@15142 39 cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
pascal@15142 40 cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
jozee@6821 41
jozee@6821 42
jozee@6821 43 }