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"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;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
    
    
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)