wok-current view ninvaders/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 497ec5686070
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ninvaders"
4 VERSION="0.1.2"
5 CATEGORY="games"
6 TAGS="shooting"
7 SHORT_DESC="Space Invaders clone."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://ninvaders.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="https://github.com/sf-refugees/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="cmake libtinfo ncurses-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/ninvaders/files/ninvaders/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/ninvaders/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir _build &&
30 cd _build &&
31 cmake .. \
32 -D CMAKE_INSTALL_PREFIX=/usr &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/games
41 mkdir -p $fs/usr/share/pixmaps
43 cp -a $install/usr/bin/ninvaders $fs/usr/games/nInvaders
44 cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
45 }