wok view bmpanel2/receipt @ rev 25687
updated sc-im (0.8.2 -> 0.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 11 14:51:51 2024 +0100 (7 months ago) |
parents | e1e1678c5265 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="bmpanel2"
4 VERSION="2.1pre1"
5 CATEGORY="misc"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="MIT"
8 SHORT_DESC="Nice NETWM-compatible panel for X11"
9 WEB_SITE="https://github.com/nsf/bmpanel2"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/archive/refs/tags/$VERSION.tar.gz"
12 TAGS="panel"
14 DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
15 BUILD_DEPENDS="cmake python-dev xorg-libXext-dev cairo-dev pango-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules() {
26 cd $src
27 # fix "with" statement for python 2.5
28 sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
29 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
30 make
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
38 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
39 # cp only native and transpy themes
40 cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
41 cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
44 }