wok-current annotate wesnoth/receipt @ rev 15000
Add some GPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 17:00:38 2013 +0000 (2013-08-10) |
parents | 1a058ee0e4c2 |
children | 4cc128a1bc43 |
rev | line source |
---|---|
pascal@3049 | 1 # SliTaz package receipt. |
pascal@3049 | 2 |
pascal@3049 | 3 PACKAGE="wesnoth" |
pascal@13139 | 4 VERSION="1.10.3" |
pascal@3049 | 5 CATEGORY="games" |
pascal@3049 | 6 SHORT_DESC="Turn based strategy game" |
pascal@3049 | 7 MAINTAINER="mimas@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@15000 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@15000 | 10 WEB_SITE="http://www.wesnoth.org/" |
pascal@15000 | 11 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" |
pascal@15000 | 12 TAGS="strategy" |
pascal@15000 | 13 |
pascal@5007 | 14 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \ |
pascal@5007 | 15 cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \ |
pascal@13139 | 16 xcb-util libboost-system libboost-program-options" |
erjo@5938 | 17 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \ |
erjo@5938 | 18 libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \ |
pascal@13139 | 19 lua-dev libboost-serialization-dev autoconf automake fribidi-dev \ |
pascal@13139 | 20 libboost-system-dev libboost-program-options-dev cmake" |
pascal@3049 | 21 |
pascal@3049 | 22 # Rules to configure and make the package. |
pascal@3049 | 23 compile_rules() |
pascal@3049 | 24 { |
pascal@3049 | 25 cd $src |
pascal@13139 | 26 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pascal@13139 | 27 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
pascal@3049 | 28 } |
pascal@3049 | 29 |
pascal@3049 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3049 | 31 genpkg_rules() |
pascal@3049 | 32 { |
pascal@3049 | 33 # programs |
pascal@3049 | 34 mkdir -p $fs/usr/bin |
pascal@15000 | 35 cp $install/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 36 |
pascal@3049 | 37 # data |
pascal@3049 | 38 mkdir -p $fs/usr/share/wesnoth/ |
pascal@15000 | 39 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
pascal@15000 | 40 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
pascal@15000 | 41 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
pascal@15000 | 42 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 43 |
pascal@3049 | 44 mkdir $fs/usr/share/wesnoth/translations |
pascal@3049 | 45 if [ ! "$LOCALE" = "" ]; then |
pascal@3049 | 46 for i in $LOCALE |
pascal@3049 | 47 do |
pascal@15000 | 48 cp -a $install/usr/share/wesnoth/translations/$i \ |
pascal@3049 | 49 $fs/usr/share/wesnoth/translations |
pascal@3049 | 50 done |
pascal@3049 | 51 else |
pascal@15000 | 52 cp -a $install/usr/share/wesnoth/translations \ |
pascal@3049 | 53 $fs/usr/share/wesnoth/ |
pascal@3049 | 54 fi |
pascal@3049 | 55 |
pascal@3049 | 56 # Remove music |
pascal@3050 | 57 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
pascal@3049 | 58 |
pascal@3049 | 59 # finalize |
pascal@15000 | 60 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15000 | 61 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@3049 | 62 |
pascal@3049 | 63 } |
pascal@3049 | 64 |