wok annotate singularity/receipt @ rev 6960

singularity: patch and path change
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Oct 26 13:14:13 2010 +0200 (2010-10-26)
parents bf83cc941560
children 41059339acd5
rev   line source
slaxemulator@6922 1 # SliTaz package receipt.
slaxemulator@6922 2
slaxemulator@6922 3 PACKAGE="singularity"
slaxemulator@6922 4 VERSION="0.30b"
slaxemulator@6922 5 CATEGORY="games"
slaxemulator@6922 6 SHORT_DESC="Strategy game - simulation of true Al"
slaxemulator@6922 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@6922 8 DEPENDS="python python-pygame libsdl-image libsdl-mixer python-numpy"
gokhlayeh@6960 9 BUILD_DEPENDS="patch"
slaxemulator@6922 10 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
slaxemulator@6922 11 WEB_SITE="http://emhsoft.com/singularity/index.html"
slaxemulator@6922 12 WGET_URL="http://endgame-singularity.googlecode.com/files/$TARBALL"
slaxemulator@6922 13
slaxemulator@6922 14 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6922 15 genpkg_rules()
slaxemulator@6922 16 {
gokhlayeh@6960 17 patch -p0 < stuff/percents-$VERSION.patch
gokhlayeh@6960 18 mkdir -p $fs/usr/bin $fs/usr/games/singularity
gokhlayeh@6960 19 cp -a $src/singularity.py $fs/usr/games/singularity
slaxemulator@6922 20 cat >> $fs/usr/bin/singularity <<EOT
slaxemulator@6922 21 #!/bin/sh
gokhlayeh@6960 22 cd /usr/games/singularity
slaxemulator@6922 23 exec python singularity.py "$@"
slaxemulator@6922 24 EOT
slaxemulator@6922 25 chmod +x $fs/usr/bin/singularity
gokhlayeh@6960 26 cp -a $src/code $src/data $fs/usr/games/singularity
slaxemulator@6922 27 }
slaxemulator@6922 28