wok-6.x view ninvaders/receipt @ rev 25392
updated usbids (2022.03.22 -> 2022.08.01)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Aug 01 15:27:35 2022 +0100 (2022-08-01) |
parents | afae00265386 |
children | 7dd01dedad38 |
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="http://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 }