wok annotate ninvaders/receipt @ rev 25331

updated stella (6.6 -> 6.7)
author Hans-G?nter Theisgen
date Sat Jul 23 11:20:01 2022 +0100 (2022-07-23)
parents afae00265386
children 7dd01dedad38
rev   line source
pankso@35 1 # SliTaz package receipt.
pankso@35 2
pankso@35 3 PACKAGE="ninvaders"
Hans-G?nter@24997 4 VERSION="0.1.2"
pankso@208 5 CATEGORY="games"
Hans-G?nter@24997 6 TAGS="shooting"
pankso@35 7 SHORT_DESC="Space Invaders clone."
pankso@35 8 MAINTAINER="pankso@slitaz.org"
pascal@15584 9 LICENSE="GPL2"
Hans-G?nter@24997 10 WEB_SITE="http://ninvaders.sourceforge.net/"
pankso@35 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@35 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@24997 13 WGET_URL="https://github.com/sf-refugees/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
pankso@35 14
pascal@15584 15 DEPENDS="ncurses"
Hans-G?nter@24997 16 BUILD_DEPENDS="cmake libtinfo ncurses-dev"
pascal@15584 17
pascal@24402 18 # What is the latest version available today?
pascal@24402 19 current_version()
pascal@24402 20 {
pascal@24402 21 wget -O - https://sourceforge.net/projects/ninvaders/files/ninvaders/ 2>/dev/null | \
pascal@24402 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 23 sed '/scope="row/!d;s|.*/ninvaders/||;s|/.*||;q'
pascal@24402 24 }
pascal@24402 25
pankso@35 26 # Rules to configure and make the package.
pankso@35 27 compile_rules()
pankso@35 28 {
Hans-G?nter@24997 29 mkdir _build &&
Hans-G?nter@24997 30 cd _build &&
Hans-G?nter@24997 31 cmake .. \
Hans-G?nter@24997 32 -D CMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@24997 33 make &&
Hans-G?nter@24997 34 make install
pankso@35 35 }
pankso@35 36
pankso@35 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@35 38 genpkg_rules()
pankso@35 39 {
Hans-G?nter@24997 40 mkdir -p $fs/usr/games
Hans-G?nter@24997 41 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@24997 42
Hans-G?nter@24997 43 cp -a $install/usr/bin/ninvaders $fs/usr/games/nInvaders
Hans-G?nter@24997 44 cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
pankso@35 45 }