wok-next diff cgames/receipt @ rev 21427

updated qt4 (4.8.6 -> 4.8.7)
author Hans-G?nter Theisgen
date Tue May 05 08:11:24 2020 +0100 (2020-05-05)
parents 466bca9334ef
children 5925d0e91dc7
line diff
     1.1 --- a/cgames/receipt	Tue Oct 17 10:14:12 2017 +0200
     1.2 +++ b/cgames/receipt	Tue May 05 08:11:24 2020 +0100
     1.3 @@ -1,42 +1,38 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="cgames"
     1.8  VERSION="2.2"
     1.9  CATEGORY="games"
    1.10 -SHORT_DESC="Games for the Linux Console."
    1.11 +SHORT_DESC="Games for the Linux Console"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
    1.18  
    1.19 -DEPENDS="ncurses"
    1.20  BUILD_DEPENDS="ncurses-dev"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 +compile_rules() {
    1.26  	sed -i	-e 's|install -.*\$|&(destdir)/$|' \
    1.27 -		-e "s|^prefix|destdir = $DESTDIR\\n&|" \
    1.28 +		-e "s|^prefix|destdir = $install\\n&|" \
    1.29  		-e 's/g games/g root/' */Makefile.in
    1.30  	sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h
    1.31 -	./configure --prefix=/usr \
    1.32 -	--mandir=/usr/share/man \
    1.33 -	--datadir=/usr/share \
    1.34 -	--disable-mouse \
    1.35 -	--with-ncurses \
    1.36 -	$CONFIGURE_ARGS &&
    1.37 +
    1.38 +	./configure \
    1.39 +		--prefix=/usr \
    1.40 +		--mandir=/usr/share/man \
    1.41 +		--datadir=/usr/share \
    1.42 +		--disable-mouse \
    1.43 +		--with-ncurses \
    1.44 +		$CONFIGURE_ARGS &&
    1.45  	make &&
    1.46 -	make install
    1.47 +	make install || return 1
    1.48 +
    1.49 +	find $install -type f -name '*.txt' -exec chmod a-x '{}' \;
    1.50  }
    1.51  
    1.52 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.53 -genpkg_rules()
    1.54 -{
    1.55 -	mkdir -p $fs/usr/share
    1.56 -	cp -a $install/usr/games $fs/usr
    1.57 -	cp -a $install/usr/share/cblocks $fs/usr/share
    1.58 -	cp -a $install/usr/share/csokoban $fs/usr/share
    1.59 -
    1.60 -	find $fs -type f -name '*.txt' -exec chmod a-x \{\} \;
    1.61 +genpkg_rules() {
    1.62 +	copy @std
    1.63 +	DEPENDS="ncurses"
    1.64  }