wok-6.x view ninvaders/receipt @ rev 24788
grep: add post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 21 09:31:32 2022 +0000 (2022-03-21) |
parents | 881c653f2f8c |
children | 497ec5686070 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ninvaders"
4 VERSION="0.1.1"
5 CATEGORY="games"
6 SHORT_DESC="Space Invaders clone."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://ninvaders.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="shooting"
13 HOST_ARCH="i486 arm"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="ncurses-dev libtinfo"
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 export LDFLAGS="$LDFLAGS -ltinfo"
30 make CC=${HOST_SYSTEM}-gcc
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/games $fs/usr/share/pixmaps
37 cp -a $src/nInvaders $fs/usr/games
38 cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
39 }