wok-current view compton/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | 03b2309fd335 |
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 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile
27 make \
28 NO_LIBCONFIG="true" \
29 NO_VSYNC_OPENGL="true" \
30 NO_DBUS="true"
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc/xdg/compton $fs/usr/bin
37 cp $src/compton $fs/usr/bin
38 cp $src/compton.sample.conf $fs/etc/xdg/compton/compton.conf
39 cp -r $stuff/autostart $fs/etc/xdg
40 }