wok annotate singularity/receipt @ rev 25543
linux-cloop: update cloop.u
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 11 12:33:53 2023 +0000 (20 months ago) |
parents | 934055de50e2 |
children |
rev | line source |
---|---|
slaxemulator@6922 | 1 # SliTaz package receipt. |
slaxemulator@6922 | 2 |
slaxemulator@6922 | 3 PACKAGE="singularity" |
slaxemulator@11034 | 4 VERSION="0.30c" |
slaxemulator@6922 | 5 CATEGORY="games" |
slaxemulator@6922 | 6 SHORT_DESC="Strategy game - simulation of true Al" |
slaxemulator@6922 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15587 | 8 LICENSE="GPL2" |
slaxemulator@6922 | 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
slaxemulator@6922 | 10 WEB_SITE="http://emhsoft.com/singularity/index.html" |
pascal@24978 | 11 WGET_URL="https://github.com/singularity/singularity/archive/refs/tags/v$VERSION.tar.gz" |
slaxemulator@6922 | 12 |
slaxemulator@11034 | 13 DEPENDS="python python-pygame libsdl-image libsdl-mixer python-numpy" |
slaxemulator@11034 | 14 BUILD_DEPENDS="patch" |
slaxemulator@11034 | 15 |
pascal@24462 | 16 # What is the latest version available today? |
pascal@24462 | 17 current_version() |
pascal@24462 | 18 { |
pascal@24462 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24462 | 20 sed '/singularity-/!d;s|.*singularity-||;s|.tar.*||;q' |
pascal@24462 | 21 } |
pascal@24462 | 22 |
slaxemulator@6922 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6922 | 24 genpkg_rules() |
slaxemulator@6922 | 25 { |
gokhlayeh@6960 | 26 mkdir -p $fs/usr/bin $fs/usr/games/singularity |
gokhlayeh@6960 | 27 cp -a $src/singularity.py $fs/usr/games/singularity |
slaxemulator@6922 | 28 cat >> $fs/usr/bin/singularity <<EOT |
slaxemulator@6922 | 29 #!/bin/sh |
gokhlayeh@6960 | 30 cd /usr/games/singularity |
slaxemulator@6922 | 31 exec python singularity.py "$@" |
slaxemulator@6922 | 32 EOT |
slaxemulator@6922 | 33 chmod +x $fs/usr/bin/singularity |
gokhlayeh@6960 | 34 cp -a $src/code $src/data $fs/usr/games/singularity |
slaxemulator@6922 | 35 } |