wok-next diff syasokoban/receipt @ rev 20821

perl-task-weaken: update $WGET_URL
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 14 00:03:13 2018 +0300 (2018-06-14)
parents bca48f3b8bb3
children 7506b35e1c6f
line diff
     1.1 --- a/syasokoban/receipt	Tue Oct 31 21:42:04 2017 +0100
     1.2 +++ b/syasokoban/receipt	Thu Jun 14 00:03:13 2018 +0300
     1.3 @@ -1,34 +1,30 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="syasokoban"
     1.8  VERSION="2.0.1"
     1.9  CATEGORY="games"
    1.10 -SHORT_DESC="Sokoban clone."
    1.11 +SHORT_DESC="Sokoban clone"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2 BSD"
    1.14 +WEB_SITE="http://grayskygames.com/sokoban.html"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://grayskygames.com/sokoban.html"
    1.18  WGET_URL="http://grayskygames.com/sokoban/$TARBALL"
    1.19  
    1.20 -DEPENDS="libsdl gcc-lib-base glibc-base"
    1.21  BUILD_DEPENDS="libsdl-dev"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 +compile_rules() {
    1.27  	sed -i 's|<stdlib.h>|&\n#include <unistd.h>|' src/Main.cpp
    1.28 -	if [ ! -f gcc44.u.done ]; then
    1.29 -		patch -p0 < $stuff/gcc44.u
    1.30 -		touch gcc44.u.done
    1.31 -	fi
    1.32 -	make
    1.33 +	make || return 1
    1.34 +
    1.35 +	mkdir -p $install/usr/share/syasokoban/
    1.36 +	cp -r $src/syasokoban $src/data $install/usr/share/syasokoban/
    1.37 +
    1.38 +	install -Dm644 $stuff/sokoban.desktop $install/usr/share/applications/sokoban.desktop
    1.39 +	install -Dm755 $stuff/syasokoban      $install/usr/bin/syasokoban
    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/bin $fs/usr/share/syasokoban $fs/usr/share/applications
    1.46 -	cp -a $src/syasokoban $src/data $fs/usr/share/syasokoban
    1.47 -	cp -a $stuff/sokoban.desktop $fs/usr/share/applications
    1.48 -	cp -a $stuff/syasokoban $fs/usr/bin/syasokoban
    1.49 +genpkg_rules() {
    1.50 +	copy @std
    1.51 +	DEPENDS="libsdl gcc-lib-base glibc-base"
    1.52  }