wok view compton/receipt @ rev 25682

Up libqcow (20240308)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 24 18:25:46 2024 +0000 (2 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="compton"
4 VERSION="0.1_beta2"
5 CATEGORY="x-window"
6 SHORT_DESC="Light X Compositor new generation"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/chjj/compton"
11 WGET_URL="https://github.com/chjj/$PACKAGE/archive/v${VERSION}.tar.gz"
12 HOST_ARCH="i486 arm"
14 DEPENDS="xorg-libXcomposite xorg-libXrandr libdrm xorg-xwininfo xorg-xprop"
15 BUILD_DEPENDS="xorg-libXcomposite xorg-libXrandr-dev libdrm-dev wget"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 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 {
27 sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile
28 make \
29 NO_LIBCONFIG="true" \
30 NO_VSYNC_OPENGL="true" \
31 NO_DBUS="true"
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc/xdg/compton $fs/usr/bin
38 cp $src/compton $fs/usr/bin
39 cp $src/compton.sample.conf $fs/etc/xdg/compton/compton.conf
40 cp -r $stuff/autostart $fs/etc/xdg
41 }