wok-next rev 20260
Up Wesnoth (1.12.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 07 19:30:20 2017 +0100 (2017-11-07) |
parents | acc4d2d3ae5b |
children | df238cf8b764 |
files | wesnoth-music/receipt wesnoth/receipt |
line diff
1.1 --- a/wesnoth-music/receipt Tue Nov 07 18:34:13 2017 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,18 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="wesnoth-music" 1.7 -VERSION="1.10.3" 1.8 -CATEGORY="games" 1.9 -SHORT_DESC="Music files for wesnoth" 1.10 -MAINTAINER="mimas@slitaz.org" 1.11 -LICENSE="GPL2" 1.12 -WANTED="wesnoth" 1.13 -WEB_SITE="http://www.wesnoth.org/" 1.14 - 1.15 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 -genpkg_rules() 1.17 -{ 1.18 - mkdir -p $fs/usr/share/wesnoth/data/core 1.19 - cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core 1.20 -} 1.21 -
2.1 --- a/wesnoth/receipt Tue Nov 07 18:34:13 2017 +0100 2.2 +++ b/wesnoth/receipt Tue Nov 07 19:30:20 2017 +0100 2.3 @@ -1,29 +1,27 @@ 2.4 -# SliTaz package receipt. 2.5 +# SliTaz package receipt v2. 2.6 2.7 PACKAGE="wesnoth" 2.8 -VERSION="1.10.3" 2.9 +VERSION="1.12.6" 2.10 CATEGORY="games" 2.11 SHORT_DESC="Turn based strategy game" 2.12 MAINTAINER="mimas@slitaz.org" 2.13 LICENSE="GPL2" 2.14 TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.15 WEB_SITE="http://www.wesnoth.org/" 2.16 -WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" 2.17 +WGET_URL="$SF_MIRROR/wesnoth/wesnoth-${VERSION%.*}/$PACKAGE-$VERSION/$TARBALL" 2.18 TAGS="strategy" 2.19 2.20 -DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \ 2.21 -cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \ 2.22 -xcb-util libboost-system libboost-program-options" 2.23 BUILD_DEPENDS="cairo-dev pango-dev libboost-dev libboost-regex \ 2.24 libboost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \ 2.25 libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev \ 2.26 findutils lua-dev libboost-serialization autoconf automake fribidi-dev \ 2.27 -libboost-system libboost-program-options cmake" 2.28 +libboost-system libboost-program-options libboost-filesystem libboost-locale \ 2.29 +libvorbis-dev cmake gettext-tools" 2.30 +SPLIT="wesnoth-music" 2.31 2.32 # Rules to configure and make the package. 2.33 compile_rules() 2.34 { 2.35 - cd $src 2.36 cmake -DCMAKE_INSTALL_PREFIX=/usr . 2.37 make $MAKEFLAGS && make DESTDIR=$DESTDIR install 2.38 } 2.39 @@ -31,35 +29,47 @@ 2.40 # Rules to gen a SliTaz package suitable for Tazpkg. 2.41 genpkg_rules() 2.42 { 2.43 - # programs 2.44 - mkdir -p $fs/usr/bin 2.45 - cp $install/usr/bin/wesnoth $fs/usr/bin/ 2.46 + case $PACKAGE in 2.47 + wesnoth) 2.48 + DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \ 2.49 + libsdl-image zlib pango cairo fontconfig \ 2.50 + libboost-regex libboost-iostreams libpng fribidi \ 2.51 + gcc-lib-base xcb-util libboost-system \ 2.52 + libboost-program-options" 2.53 + # programs 2.54 + mkdir -p $fs/usr/bin 2.55 + cp $install/usr/bin/wesnoth $fs/usr/bin/ 2.56 2.57 - # data 2.58 - mkdir -p $fs/usr/share/wesnoth/ 2.59 - cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ 2.60 - cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ 2.61 - cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ 2.62 - cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ 2.63 + # data 2.64 + mkdir -p $fs/usr/share/wesnoth/ 2.65 + cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ 2.66 + cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ 2.67 + cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ 2.68 + cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ 2.69 2.70 - mkdir $fs/usr/share/wesnoth/translations 2.71 - if [ ! "$LOCALE" = "" ]; then 2.72 - for i in $LOCALE 2.73 - do 2.74 - cp -a $install/usr/share/wesnoth/translations/$i \ 2.75 - $fs/usr/share/wesnoth/translations 2.76 - done 2.77 - else 2.78 - cp -a $install/usr/share/wesnoth/translations \ 2.79 - $fs/usr/share/wesnoth/ 2.80 - fi 2.81 + mkdir $fs/usr/share/wesnoth/translations 2.82 + if [ ! "$LOCALE" = "" ]; then 2.83 + for i in $LOCALE 2.84 + do 2.85 + cp -a $install/usr/share/wesnoth/translations/$i \ 2.86 + $fs/usr/share/wesnoth/translations 2.87 + done 2.88 + else 2.89 + cp -a $install/usr/share/wesnoth/translations \ 2.90 + $fs/usr/share/wesnoth/ 2.91 + fi 2.92 2.93 - # Remove music 2.94 - rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null 2.95 + # Remove music 2.96 + rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null 2.97 2.98 - # finalize 2.99 - cp -a $install/usr/share/applications $fs/usr/share 2.100 - cp -a $install/usr/share/pixmaps $fs/usr/share 2.101 - 2.102 + # finalize 2.103 + cp -a $install/usr/share/applications $fs/usr/share 2.104 + cp -a $install/usr/share/pixmaps $fs/usr/share 2.105 + ;; 2.106 + wesnoth-music) 2.107 + CAT="games|music files" 2.108 + mkdir -p $fs/usr/share/wesnoth/data/core 2.109 + cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core 2.110 + ;; 2.111 + esac 2.112 } 2.113 -