wok-6.x annotate xstroke/receipt @ rev 20460

Remove py3k7, up py3k (3.7.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 10 16:24:34 2018 +0200 (2018-10-10)
parents
children 6135577f4d08
rev   line source
pankso@16420 1 # SliTaz package receipt.
pankso@16420 2
pankso@16420 3 PACKAGE="xstroke"
pankso@16420 4 VERSION="0.6"
pankso@16420 5 CATEGORY="x-window"
pankso@16420 6 SHORT_DESC="Full-screen gesture recognition program for X."
pankso@16420 7 MAINTAINER="pankso@slitaz.org"
pankso@16420 8 LICENSE="GPL2"
pankso@16420 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16420 10 WEB_SITE="http://cworth.org/~cworth/papers/xstroke/"
pankso@16420 11 WGET_URL="http://davesource.com/Projects/xstroke/xstroke.tar.gz"
pankso@16420 12 HOST_ARCH="i486 arm"
pankso@16420 13
pankso@16420 14 DEPENDS="xorg-libX11"
pankso@16420 15 BUILD_DEPENDS="xorg-libX11-dev"
pankso@16420 16
pankso@16420 17 # Rules to configure and make the package.
pankso@16420 18 compile_rules()
pankso@16420 19 {
pankso@16420 20 case "$ARCH" in
pankso@16420 21 i?86) sysroot="" ;;
pankso@16420 22 arm*) sysroot="/cross/$ARCH/sysroot" ;;
pankso@16420 23 esac
pankso@16420 24 sed -i \
pankso@16420 25 -e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" \
pankso@16420 26 -e s"#^INCLUDE.*#INCLUDE = -I${sysroot}/usr/include#" \
pankso@16420 27 -e s"#^LDFLAGS.*#LDFLAGS = -L${sysroot}/usr/lib#" Makefile &&
pankso@16420 28 make xstroke
pankso@16420 29 }
pankso@16420 30
pankso@16420 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16420 32 genpkg_rules()
pankso@16420 33 {
pankso@16420 34 mkdir -p $fs/usr/bin $fs/usr/share/doc/${PACKAGE}
pankso@16420 35 cp -a ${src}/${PACKAGE} $fs/usr/bin
pankso@16420 36 cp -a ${src}/${PACKAGE}.man \
pankso@16420 37 $fs/usr/share/doc/${PACKAGE}/${PACKAGE}.txt
pankso@16420 38 }