wok annotate ninvaders/receipt @ rev 24557

updated fltk packages (1.3.5 -> 1.3.8)
author Hans-G?nter Theisgen
date Fri Feb 25 15:09:26 2022 +0100 (2022-02-25)
parents 881c653f2f8c
children 497ec5686070
rev   line source
pankso@35 1 # SliTaz package receipt.
pankso@35 2
pankso@35 3 PACKAGE="ninvaders"
pankso@35 4 VERSION="0.1.1"
pankso@208 5 CATEGORY="games"
pankso@35 6 SHORT_DESC="Space Invaders clone."
pankso@35 7 MAINTAINER="pankso@slitaz.org"
pascal@15584 8 LICENSE="GPL2"
pankso@35 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@35 10 WEB_SITE="http://ninvaders.sourceforge.net/"
pankso@35 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4969 12 TAGS="shooting"
pankso@16171 13 HOST_ARCH="i486 arm"
pankso@35 14
pascal@15584 15 DEPENDS="ncurses"
pascal@19088 16 BUILD_DEPENDS="ncurses-dev libtinfo"
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 {
pascal@17672 29 export LDFLAGS="$LDFLAGS -ltinfo"
pankso@16171 30 make CC=${HOST_SYSTEM}-gcc
pankso@35 31 }
pankso@35 32
pankso@35 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@35 34 genpkg_rules()
pankso@35 35 {
samuel_trassare@11978 36 mkdir -p $fs/usr/games $fs/usr/share/pixmaps
pankso@35 37 cp -a $src/nInvaders $fs/usr/games
samuel_trassare@11978 38 cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
pankso@35 39 }