wok diff wesnoth/receipt.old @ rev 22552

created recipe for py3k-numpy
author Hans-G?nter Theisgen
date Sat Jan 04 14:14:14 2020 +0100 (2020-01-04)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wesnoth/receipt.old	Sat Jan 04 14:14:14 2020 +0100
     1.3 @@ -0,0 +1,64 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wesnoth"
     1.7 +VERSION="1.10.3"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Turn based strategy game"
    1.10 +MAINTAINER="mimas@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 +WEB_SITE="http://www.wesnoth.org/"
    1.14 +WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
    1.15 +TAGS="strategy"
    1.16 +
    1.17 +DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \
    1.18 +cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \
    1.19 +xcb-util libboost-system libboost-program-options"
    1.20 +BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \
    1.21 +libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \
    1.22 +lua-dev libboost-serialization-dev autoconf automake fribidi-dev \
    1.23 +libboost-system-dev libboost-program-options-dev cmake"
    1.24 +
    1.25 +# Rules to configure and make the package.
    1.26 +compile_rules()
    1.27 +{
    1.28 +	cd $src
    1.29 +	cmake -DCMAKE_INSTALL_PREFIX=/usr .
    1.30 +	make $MAKEFLAGS && make DESTDIR=$DESTDIR install
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	# programs
    1.37 +	mkdir -p $fs/usr/bin
    1.38 +	cp $install/usr/bin/wesnoth $fs/usr/bin/
    1.39 +
    1.40 +	# data
    1.41 +	mkdir -p $fs/usr/share/wesnoth/
    1.42 +	cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
    1.43 +	cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
    1.44 +	cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
    1.45 +	cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
    1.46 +
    1.47 +	mkdir $fs/usr/share/wesnoth/translations
    1.48 +	if [ ! "$LOCALE" = "" ]; then
    1.49 +		for i in $LOCALE
    1.50 +		do
    1.51 +			cp -a $install/usr/share/wesnoth/translations/$i \
    1.52 +				$fs/usr/share/wesnoth/translations
    1.53 +		done		
    1.54 +	else
    1.55 +		cp -a $install/usr/share/wesnoth/translations \
    1.56 +			$fs/usr/share/wesnoth/
    1.57 +	fi
    1.58 +	
    1.59 +	# Remove music
    1.60 +	rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
    1.61 +
    1.62 +	# finalize
    1.63 +	cp -a $install/usr/share/applications $fs/usr/share
    1.64 +	cp -a $install/usr/share/pixmaps $fs/usr/share
    1.65 +
    1.66 +}
    1.67 +