SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "Arkanoid"

# SliTaz package receipt.

PACKAGE="Arkanoid"
GITHASH="0b49ab21d5b135b2718fe0664c6c92b4deb2b46e"
VERSION="2016"
CATEGORY="games"
SHORT_DESC="The classic atari arcade game arkanoid"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.zip"
WEB_SITE="https://github.com/shiningdragon/Arkanoid"
WGET_URL="$WEB_SITE/archive/$GITHASH.zip"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/commits/master 2>/dev/null | \
    sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/var/www $fs/usr/share/applications
    cp -a $src $fs/var/www/$PACKAGE
    cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
[Desktop Entry]
Type=Application
Name=$PACKAGE
Exec=sh -c "url=http://127.0.0.1/$PACKAGE/public/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
Icon=applications-games
Terminal=false
Categories=Game
EOT
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)