SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "blackbox"

# SliTaz package receipt.

PACKAGE="blackbox"
VERSION="0.77"
CATEGORY="x-window"
TAGS="window-manager"
SHORT_DESC="A small, fast, full-featured window manager for X."
MAINTAINER="devl547@gmail.com"
LICENSE="MIT"
WEB_SITE="https://github.com/bbidulock/blackboxwm"
REPOLOGY="blackbox-wm"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"

SUGGESTED="blackbox-lang"
DEPENDS="xorg-libXft xorg-libXt"
BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev xorg-libXft-dev 
    xorg-libXt-dev xorg-xextproto"

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

# Rules to configure and make the package.
compile_rules()
{
#    patch -p1 < $stuff/blackbox-0.70.1-gcc-4.3.patch
#    patch -p0 < $stuff/blackbox-0.70.1-asneeded.patch
#    patch -p1 < $stuff/textpropertytostring-unconditional.patch

    ./autogen.sh &&
    ./configure            \
        CC=gcc-83        \
        CXX=g++-83        \
        --sysconfdir=/etc    \
        --libexecdir=/usr/bin    \
        --mandir=/usr/share/man    \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/blackbox    $fs/usr/share

    # menu suitable for SliTaz
    cp -a $stuff/menu            $fs/usr/share/blackbox
}

post_install()
{
    res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    # Add window manager to SLIM available sessions.
    if ! echo "$res" | grep -q $PACKAGE
      then
        sed -i    "s|^sessions.*|sessions            ${res},$PACKAGE|" \
            "$1/etc/slim.conf"
    fi
}

post_remove()
{
    # Remove window manager from SLIM available sessions.
    if grep -q $PACKAGE "$1/etc/slim.conf"
      then
        sed -i "s|,$PACKAGE||" "$1/etc/slim.conf"
    fi
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)