SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "compton"

# SliTaz package receipt.

PACKAGE="compton"
VERSION="0.1_beta2"
CATEGORY="x-window"
SHORT_DESC="Light X Compositor new generation"
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/chjj/compton"
WGET_URL="https://github.com/chjj/$PACKAGE/archive/v${VERSION}.tar.gz"
HOST_ARCH="i486 arm"

DEPENDS="xorg-libXcomposite xorg-libXrandr libdrm xorg-xwininfo xorg-xprop"
BUILD_DEPENDS="xorg-libXcomposite xorg-libXrandr-dev libdrm-dev wget"

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

# Rules to configure and make the package.
compile_rules()
{
    sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile
    make \
        NO_LIBCONFIG="true" \
        NO_VSYNC_OPENGL="true" \
        NO_DBUS="true"
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/xdg/compton $fs/usr/bin
    cp $src/compton $fs/usr/bin
    cp $src/compton.sample.conf $fs/etc/xdg/compton/compton.conf
    cp -r $stuff/autostart $fs/etc/xdg
}

6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)