wok view Connect-Four/receipt @ rev 25783
Up verbiste (0.1.49)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 24 13:23:01 2024 +0000 (6 weeks ago) |
parents | c470ca10c896 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="Connect-Four"
4 VERSION="20140416"
5 GITTAG="fa4bbe1fbd6158fa4504d3cb832d8d4af4d3f805"
6 CATEGORY="games"
7 SHORT_DESC="A Connect Four game in JavaScript"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="unknown"
10 WEB_SITE="https://github.com/OmarAlEisa/Connect-Four"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
13 HOST_ARCH="any"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
19 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/www/Connect-Four $fs/usr/share/applications
26 cp -a $src/[a-z]* $fs/var/www/Connect-Four
27 sed -i '/<script>/,/<\/script>/d' $fs/var/www/Connect-Four/index.html
28 chown -R 80.80 $fs/var/www/Connect-Four
29 cat > $fs/usr/share/applications/Connect-Four.desktop <<EOT
30 [Desktop Entry]
31 Type=Application
32 Name=4 in a raw
33 Name[fr]=4 en ligne
34 Exec=sh -c "url=file:///var/www/Connect-Four/index.html; tazweb --notoolbar \$url || browser \$url"
35 Terminal=false
36 Categories=Game;
37 Icon=applications-games
38 EOT
39 }