wok-next diff ninvaders/receipt @ rev 21012

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 13 17:31:50 2018 +0300 (2018-10-13)
parents c4e53a39395a
children d5aab818505e
line diff
     1.1 --- a/ninvaders/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/ninvaders/receipt	Sat Oct 13 17:31:50 2018 +0300
     1.3 @@ -1,29 +1,27 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="ninvaders"
     1.8  VERSION="0.1.1"
     1.9  CATEGORY="games"
    1.10 -SHORT_DESC="Space Invaders clone."
    1.11 +SHORT_DESC="Space Invaders clone"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://ninvaders.sourceforge.net/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://ninvaders.sourceforge.net/"
    1.18  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.19 -TAGS="shooting"
    1.20  
    1.21 -DEPENDS="ncurses"
    1.22  BUILD_DEPENDS="ncurses-dev"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 -	make CC=${HOST_SYSTEM}-gcc
    1.28 +compile_rules() {
    1.29 +	make CC=$HOST_SYSTEM-gcc || return 1
    1.30 +
    1.31 +	install -Dm755 $src/nInvaders      $install/usr/games/nInvaders
    1.32 +	install -Dm644 $stuff/ninvader.png $install/usr/share/pixmaps/ninvader.png
    1.33  }
    1.34  
    1.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 -genpkg_rules()
    1.37 -{
    1.38 -	mkdir -p $fs/usr/games $fs/usr/share/pixmaps
    1.39 -	cp -a $src/nInvaders $fs/usr/games
    1.40 -	cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
    1.41 +genpkg_rules() {
    1.42 +	copy @std
    1.43 +	DEPENDS="ncurses"
    1.44 +	TAGS="shooting"
    1.45  }