wok view ninvaders/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (8 months ago) |
parents | 7dd01dedad38 |
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 - ${WGET_URL%/arch*}/tags 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir _build &&
29 cd _build &&
30 cmake .. \
31 -D CMAKE_INSTALL_PREFIX=/usr &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/games
40 mkdir -p $fs/usr/share/pixmaps
42 cp -a $install/usr/bin/ninvaders $fs/usr/games/nInvaders
43 cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
44 }