wok-next diff frogatto/receipt @ rev 19970

mrxvt-unicode: fix WGET_URL
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Oct 17 18:36:29 2017 +0200 (2017-10-17)
parents 2f3aba6cc31e
children c0521c689857
line diff
     1.1 --- a/frogatto/receipt	Mon Jun 12 11:39:09 2017 +0300
     1.2 +++ b/frogatto/receipt	Tue Oct 17 18:36:29 2017 +0200
     1.3 @@ -1,48 +1,43 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="frogatto"
     1.8 -VERSION="1.1.1"
     1.9 +VERSION="1.3.1"
    1.10  CATEGORY="games"
    1.11 -SHORT_DESC="An old-school 2d platformer game, starring a certain quixotic frog."
    1.12 +SHORT_DESC="Frogatto & Friends is an action-adventure game, starring a certain quixotic frog"
    1.13  MAINTAINER="gokhlayeh@slitaz.org"
    1.14 -LICENSE="GPL3"
    1.15 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WEB_SITE="http://www.frogatto.com"
    1.17 -WGET_URL="$WEB_SITE/files/$TARBALL"
    1.18 +LICENSE="CC-BY-3 custom"
    1.19 +WEB_SITE="https://frogatto.com/"
    1.20  
    1.21 -DEPENDS="xorg-server mesa glew libsdl libsdl-image libsdl-ttf libsdl-mixer \
    1.22 -libpng libboost-regex libboost-system libboost-date-time libboost-thread \
    1.23 -libboost-iostreams frogatto-data"
    1.24 -BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache xorg-server-dev mesa-dev \
    1.25 -libsdl-dev libsdl-image-dev libsdl-ttf-dev libsdl-mixer-dev libpng-dev \
    1.26 -libboost-dev glew-dev"
    1.27 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.28 +WGET_URL="https://github.com/frogatto/frogatto/archive/$VERSION.tar.gz"
    1.29  
    1.30 -# Rules to configure and make the package.
    1.31 -compile_rules()
    1.32 -{
    1.33 -	cd $src
    1.34 +BUILD_DEPENDS="xorg-libX11-dev libsdl-dev mesa-dev libglu-mesa-dev glew-dev \
    1.35 +libsdl-image-dev libpng16-dev zlib-dev libboost-dev libsdl-ttf-dev \
    1.36 +libsdl-mixer-dev coreutils-file-format ccache"
    1.37 +SPLIT="frogatto-data"
    1.38  
    1.39 -	# Frogatto look for multithread libboost (*-mt.so) but we don't use
    1.40 -	# them in SliTaz, let's lure it.
    1.41 -	for lib in $(ls /usr/lib/libboost*); do
    1.42 -		link=$(echo $lib | sed 's/\./-mt./')
    1.43 -		ln -s $lib $link
    1.44 -	done
    1.45 +compile_rules() {
    1.46 +	CXXFLAGS="$CXXFLAGS -std=gnu++98" make game server || return 1
    1.47  
    1.48 -	# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19
    1.49 -	sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp
    1.50 -
    1.51 -	make $MAKEFLAGS game server
    1.52 -
    1.53 -	# Remove the links previously created.
    1.54 -	rm -f /usr/lib/libboost*-mt*
    1.55 +	mkdir -p $install/opt/frogatto/
    1.56 +	cp game server *.ttf $install/opt/frogatto/
    1.57 +	cp -r data/ images/ modules/ music/ $install/opt/frogatto
    1.58 +	install -Dm 755 $stuff/frogatto $install/usr/bin/frogatto
    1.59 +	install -Dm 644 $stuff/frogatto.desktop $install/usr/share/applications/frogatto.desktop
    1.60 +	install -Dm 644 $src/images/window-icon.png $install/usr/share/pixmaps/frogatto.png
    1.61  }
    1.62  
    1.63 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.64 -genpkg_rules()
    1.65 -{
    1.66 -	mkdir -p $fs/usr/games/frogatto $fs/usr/bin $fs/usr/share/pixmaps
    1.67 -	cp -a $src/game $src/server $fs/usr/games/frogatto
    1.68 -	cp -a $src/images/window-icon.png $fs/usr/share/pixmaps
    1.69 -	cp -a $stuff/frogatto $fs/usr/bin
    1.70 +genpkg_rules() {
    1.71 +	case $PACKAGE in
    1.72 +		frogatto)
    1.73 +			copy game server frogatto frogatto.desktop frogatto.png
    1.74 +			DEPENDS="glew libboost-iostreams libboost-regex libboost-system \
    1.75 +			libboost-thread libglu-mesa libpng16 libsdl libsdl-image \
    1.76 +			libsdl-mixer libsdl-ttf mesa xorg-libX11 zlib"
    1.77 +			;;
    1.78 +		frogatto-data)
    1.79 +			copy data/ images/ modules/ music/ *.ttf
    1.80 +			CAT="games|data files"
    1.81 +			;;
    1.82 +	esac
    1.83  }