wok view ninvaders/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents 497ec5686070
children 5db546345599
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 }