wok view singularity/receipt @ rev 24695
advancecomp: CVE-2019-8383 & CVE-2019-9210
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 15:13:28 2022 +0000 (2022-03-13) |
parents | 7390f8de9846 |
children | 00e3b45c063b |
line source
1 # SliTaz package receipt.
3 PACKAGE="singularity"
4 VERSION="0.30c"
5 CATEGORY="games"
6 SHORT_DESC="Strategy game - simulation of true Al"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="http://emhsoft.com/singularity/index.html"
11 WGET_URL="http://endgame-singularity.googlecode.com/files/$TARBALL"
13 DEPENDS="python python-pygame libsdl-image libsdl-mixer python-numpy"
14 BUILD_DEPENDS="patch"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/singularity-/!d;s|.*singularity-||;s|.tar.*||;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/usr/games/singularity
27 cp -a $src/singularity.py $fs/usr/games/singularity
28 cat >> $fs/usr/bin/singularity <<EOT
29 #!/bin/sh
30 cd /usr/games/singularity
31 exec python singularity.py "$@"
32 EOT
33 chmod +x $fs/usr/bin/singularity
34 cp -a $src/code $src/data $fs/usr/games/singularity
35 }