wok diff ninvaders/receipt @ rev 25331

updated stella (6.6 -> 6.7)
author Hans-G?nter Theisgen
date Sat Jul 23 11:20:01 2022 +0100 (2022-07-23)
parents afae00265386
children 7dd01dedad38
line diff
     1.1 --- a/ninvaders/receipt	Tue Feb 08 16:59:06 2022 +0000
     1.2 +++ b/ninvaders/receipt	Sat Jul 23 11:20:01 2022 +0100
     1.3 @@ -1,19 +1,19 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="ninvaders"
     1.7 -VERSION="0.1.1"
     1.8 +VERSION="0.1.2"
     1.9  CATEGORY="games"
    1.10 +TAGS="shooting"
    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  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://ninvaders.sourceforge.net/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 -TAGS="shooting"
    1.19 -HOST_ARCH="i486 arm"
    1.20 +WGET_URL="https://github.com/sf-refugees/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
    1.21  
    1.22  DEPENDS="ncurses"
    1.23 -BUILD_DEPENDS="ncurses-dev libtinfo"
    1.24 +BUILD_DEPENDS="cmake libtinfo ncurses-dev"
    1.25  
    1.26  # What is the latest version available today?
    1.27  current_version()
    1.28 @@ -26,14 +26,20 @@
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31  {
    1.32 -	export LDFLAGS="$LDFLAGS -ltinfo"
    1.33 -	make CC=${HOST_SYSTEM}-gcc
    1.34 +	mkdir	_build &&
    1.35 +	cd	_build &&
    1.36 +	cmake	..				\
    1.37 +		-D CMAKE_INSTALL_PREFIX=/usr &&
    1.38 +	make &&
    1.39 +	make install
    1.40  }
    1.41  
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43  genpkg_rules()
    1.44  {
    1.45 -	mkdir -p $fs/usr/games $fs/usr/share/pixmaps
    1.46 -	cp -a $src/nInvaders $fs/usr/games
    1.47 -	cp -a $stuff/ninvader.png $fs/usr/share/pixmaps
    1.48 +	mkdir -p $fs/usr/games
    1.49 +	mkdir -p $fs/usr/share/pixmaps
    1.50 +
    1.51 +	cp -a $install/usr/bin/ninvaders	$fs/usr/games/nInvaders
    1.52 +	cp -a $stuff/ninvader.png		$fs/usr/share/pixmaps
    1.53  }