SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "bmpanel2"

# SliTaz package receipt.

PACKAGE="bmpanel2"
VERSION="2.1pre1"
CATEGORY="misc"
MAINTAINER="jozee@slitaz.org"
LICENSE="MIT"
SHORT_DESC="Nice NETWM-compatible panel for X11"
WEB_SITE="https://github.com/nsf/bmpanel2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/refs/tags/$VERSION.tar.gz"
TAGS="panel"

DEPENDS="pango cairo xorg-libX11 xorg-libXrender"
BUILD_DEPENDS="cmake python-dev xorg-libXext-dev cairo-dev pango-dev"

current_version()
{
    wget -O - ${WGET_URL%/file*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules() {
    cd $src
    # fix "with" statement for python 2.5
    sed -i "s/import sys, os/from __future__ import with_statement \nimport sys, os /" extra/py/${PACKAGE}.py
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . 
    make 
    make DESTDIR=$DESTDIR install
}
    
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/$PACKAGE/themes $fs/usr/bin
    cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
        # cp only native and transpy themes
    cp -a $install/usr/share/$PACKAGE/themes/transpy $fs/usr/share/$PACKAGE/themes
    cp -a $install/usr/share/$PACKAGE/themes/native $fs/usr/share/$PACKAGE/themes
    
    
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)