wok-6.x annotate pacman/receipt @ rev 24755
gtklp: ignore ERROR from autogen.sh
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 17 07:54:00 2022 +0100 (2022-03-17) |
parents | c3aef97a3cef |
children | e1e1678c5265 |
rev | line source |
---|---|
pascal@23926 | 1 # SliTaz package receipt. |
pascal@23926 | 2 |
pascal@23926 | 3 PACKAGE="pacman" |
pascal@23926 | 4 VERSION="1.0" |
pascal@23926 | 5 GITTAG="e2ea1dfc9716bd2a60cc814981fff8d3d67e4d5f" |
pascal@23926 | 6 CATEGORY="games" |
pascal@23926 | 7 SHORT_DESC="A pacman game clone" |
pascal@23926 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23926 | 9 LICENSE="unknown" |
pascal@23926 | 10 WEB_SITE="https://github.com/ziw/Javascript-Pacman" |
pascal@23926 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@23926 | 12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip" |
pascal@23926 | 13 HOST_ARCH="any" |
pascal@23926 | 14 |
pascal@24497 | 15 # What is the latest version available today? |
pascal@24497 | 16 current_version() |
pascal@24497 | 17 { |
pascal@24497 | 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24497 | 19 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24497 | 20 } |
pascal@24497 | 21 |
pascal@23926 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23926 | 23 genpkg_rules() |
pascal@23926 | 24 { |
pascal@23926 | 25 mkdir -p $fs/var/www/pacman $fs/usr/share/applications |
pascal@23926 | 26 cp -a $src/* $fs/var/www/pacman |
pascal@23926 | 27 chown -R 80.80 $fs/var/www/pacman |
pascal@23926 | 28 cat > $fs/usr/share/applications/pacman.desktop <<EOT |
pascal@23926 | 29 [Desktop Entry] |
pascal@23926 | 30 Type=Application |
pascal@23926 | 31 Name=Pacman |
pascal@23926 | 32 Exec=sh -c "url=file:///var/www/pacman/index.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23926 | 33 Terminal=false |
pascal@23926 | 34 Categories=Game; |
pascal@23926 | 35 Icon=applications-games |
pascal@23926 | 36 EOT |
pascal@23926 | 37 } |