wok annotate checker_online/receipt @ rev 24203
updated perl-exporter-tiny (1.002001 -> 1.002002)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 15:25:57 2021 +0100 (2021-12-31) |
parents | |
children | d8c511e24c20 |
rev | line source |
---|---|
pascal@24118 | 1 # SliTaz package receipt. |
pascal@24118 | 2 |
pascal@24118 | 3 PACKAGE="checker_online" |
pascal@24118 | 4 GITHASH="191c29cfd72227d64f6a8db9d295fd71523bf0d7" |
pascal@24118 | 5 VERSION="2016" |
pascal@24118 | 6 CATEGORY="games" |
pascal@24118 | 7 SHORT_DESC="online chinese checker AI" |
pascal@24118 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@24118 | 9 LICENSE="unknown" |
pascal@24118 | 10 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@24118 | 11 WEB_SITE="https://github.com/HsuBokai/checker_online" |
pascal@24118 | 12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip" |
pascal@24118 | 13 |
pascal@24118 | 14 # Rules to configure and make the package. |
pascal@24118 | 15 compile_rules() |
pascal@24118 | 16 { |
pascal@24118 | 17 grep '"http' [is]* | sed 's|.*"http|wget http|;s|".*||' | sh |
pascal@24118 | 18 sed -i 's|http.*[0-9]/||' [is]* |
pascal@24118 | 19 } |
pascal@24118 | 20 |
pascal@24118 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24118 | 22 genpkg_rules() |
pascal@24118 | 23 { |
pascal@24118 | 24 mkdir -p $fs/var/www $fs/usr/share/applications |
pascal@24118 | 25 cp -a $src $fs/var/www/$PACKAGE |
pascal@24118 | 26 cat > $fs/usr/share/applications/checker_online.desktop <<EOT |
pascal@24118 | 27 [Desktop Entry] |
pascal@24118 | 28 Type=Application |
pascal@24118 | 29 Name=Chinese Checkers |
pascal@24118 | 30 Name[fr]=Dames chinoises |
pascal@24118 | 31 Exec=sh -c "url=file:///var/www/$PACKAGE/index.html ; tazweb --notoolbar \\\$url || browser \\\$url" |
pascal@24118 | 32 Icon=applications-games |
pascal@24118 | 33 Terminal=false |
pascal@24118 | 34 Categories=Game |
pascal@24118 | 35 EOT |
pascal@24118 | 36 } |