wok-current annotate compton/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 03b2309fd335 |
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@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pankso@15939 | 23 # Rules to configure and make the package. |
pankso@15939 | 24 compile_rules() |
pankso@15939 | 25 { |
pankso@15939 | 26 sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile |
pankso@15942 | 27 make \ |
pankso@15942 | 28 NO_LIBCONFIG="true" \ |
pankso@15942 | 29 NO_VSYNC_OPENGL="true" \ |
pankso@15942 | 30 NO_DBUS="true" |
pankso@15939 | 31 } |
pankso@15939 | 32 |
pankso@15939 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15939 | 34 genpkg_rules() |
pankso@15939 | 35 { |
pankso@15939 | 36 mkdir -p $fs/etc/xdg/compton $fs/usr/bin |
pankso@15939 | 37 cp $src/compton $fs/usr/bin |
pankso@15961 | 38 cp $src/compton.sample.conf $fs/etc/xdg/compton/compton.conf |
pankso@15939 | 39 cp -r $stuff/autostart $fs/etc/xdg |
pankso@15939 | 40 } |
psychomaniak@19154 | 41 |