wok annotate compton/receipt @ rev 15949

compton: avoid source tarball collisions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 23 12:17:31 2014 +0000 (2014-02-23)
parents 2ba6fbff0a52
children 4c8b76649b70
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@15939 12
pankso@15942 13 DEPENDS="xorg-libXcomposite xorg-libXrandr libdrm xorg-xwininfo xorg-xprop"
pankso@15939 14 BUILD_DEPENDS="xorg-dev xorg-libXcomposite xorg-libXrandr-dev libdrm-dev \
pankso@15942 15 wget" #asciidoc
pankso@15939 16
pankso@15939 17 # Rules to configure and make the package.
pankso@15939 18 compile_rules()
pankso@15939 19 {
pankso@15939 20 sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile
pankso@15942 21 make \
pankso@15942 22 NO_LIBCONFIG="true" \
pankso@15942 23 NO_VSYNC_OPENGL="true" \
pankso@15942 24 NO_DBUS="true"
pankso@15939 25 }
pankso@15939 26
pankso@15939 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@15939 28 genpkg_rules()
pankso@15939 29 {
pankso@15939 30 mkdir -p $fs/etc/xdg/compton $fs/usr/bin
pankso@15939 31 cp $src/compton $fs/usr/bin
pankso@15939 32 cp $stuff/compton.conf $fs/etc/xdg/compton
pankso@15939 33 cp -r $stuff/autostart $fs/etc/xdg
pankso@15939 34 }