wok annotate compton/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (14 months ago)
parents 5ea0ce1cecc0
children
rev   line source
pankso@15939 1 # SliTaz package receipt.
pankso@15939 2
pankso@15939 3 PACKAGE="compton"
pankso@15939 4 VERSION="0.1_beta2"
pankso@15939 5 CATEGORY="x-window"
pankso@15939 6 SHORT_DESC="Light X Compositor new generation"
pankso@15939 7 MAINTAINER="pankso@slitaz.org"
pankso@15939 8 LICENSE="MIT"
pascal@15949 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@15939 10 WEB_SITE="https://github.com/chjj/compton"
pascal@15949 11 WGET_URL="https://github.com/chjj/$PACKAGE/archive/v${VERSION}.tar.gz"
pankso@16382 12 HOST_ARCH="i486 arm"
pankso@15939 13
pankso@15942 14 DEPENDS="xorg-libXcomposite xorg-libXrandr libdrm xorg-xwininfo xorg-xprop"
pankso@16382 15 BUILD_DEPENDS="xorg-libXcomposite xorg-libXrandr-dev libdrm-dev wget"
pankso@15939 16
pascal@25598 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25598 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
pankso@15939 24 # Rules to configure and make the package.
pankso@15939 25 compile_rules()
pankso@15939 26 {
pankso@15939 27 sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile
pankso@15942 28 make \
pankso@15942 29 NO_LIBCONFIG="true" \
pankso@15942 30 NO_VSYNC_OPENGL="true" \
pankso@15942 31 NO_DBUS="true"
pankso@15939 32 }
pankso@15939 33
pankso@15939 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@15939 35 genpkg_rules()
pankso@15939 36 {
pankso@15939 37 mkdir -p $fs/etc/xdg/compton $fs/usr/bin
pankso@15939 38 cp $src/compton $fs/usr/bin
pankso@15961 39 cp $src/compton.sample.conf $fs/etc/xdg/compton/compton.conf
pankso@15939 40 cp -r $stuff/autostart $fs/etc/xdg
pankso@15939 41 }
psychomaniak@19154 42