wok view pacman/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | c470ca10c896 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pacman"
4 VERSION="20130418"
5 GITTAG="e2ea1dfc9716bd2a60cc814981fff8d3d67e4d5f"
6 CATEGORY="games"
7 SHORT_DESC="A pacman game clone"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="unknown"
10 WEB_SITE="https://github.com/ziw/Javascript-Pacman"
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/pacman $fs/usr/share/applications
26 cp -a $src/* $fs/var/www/pacman
27 chown -R 80.80 $fs/var/www/pacman
28 cat > $fs/usr/share/applications/pacman.desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 Name=Pacman
32 Exec=sh -c "url=file:///var/www/pacman/index.html; tazweb --notoolbar \$url || browser \$url"
33 Terminal=false
34 Categories=Game;
35 Icon=applications-games
36 EOT
37 }