wok-6.x annotate wesnoth/receipt @ rev 14613
Add php-docs-en.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 06:36:55 2013 +0000 (2013-06-01) |
parents | 9433ff922ea5 |
children | 380ffe05937a |
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@5007 | 8 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \ |
pascal@5007 | 9 cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \ |
pascal@13139 | 10 xcb-util libboost-system libboost-program-options" |
erjo@5938 | 11 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \ |
erjo@5938 | 12 libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \ |
pascal@13139 | 13 lua-dev libboost-serialization-dev autoconf automake fribidi-dev \ |
pascal@13139 | 14 libboost-system-dev libboost-program-options-dev cmake" |
pascal@3049 | 15 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@3049 | 16 WEB_SITE="http://www.wesnoth.org/" |
pascal@3049 | 17 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" |
jozee@4976 | 18 TAGS="strategy" |
pascal@3049 | 19 |
pascal@3049 | 20 # Rules to configure and make the package. |
pascal@3049 | 21 compile_rules() |
pascal@3049 | 22 { |
pascal@3049 | 23 cd $src |
pascal@13139 | 24 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pascal@13139 | 25 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
pascal@3049 | 26 } |
pascal@3049 | 27 |
pascal@3049 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3049 | 29 genpkg_rules() |
pascal@3049 | 30 { |
pascal@3049 | 31 # programs |
pascal@3049 | 32 mkdir -p $fs/usr/bin |
pascal@3049 | 33 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 34 |
pascal@3049 | 35 # data |
pascal@3049 | 36 mkdir -p $fs/usr/share/wesnoth/ |
pascal@3049 | 37 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
pascal@3049 | 38 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
pascal@3049 | 39 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
pascal@3049 | 40 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 41 |
pascal@3049 | 42 mkdir $fs/usr/share/wesnoth/translations |
pascal@3049 | 43 if [ ! "$LOCALE" = "" ]; then |
pascal@3049 | 44 for i in $LOCALE |
pascal@3049 | 45 do |
pascal@3049 | 46 cp -a $_pkg/usr/share/wesnoth/translations/$i \ |
pascal@3049 | 47 $fs/usr/share/wesnoth/translations |
pascal@3049 | 48 done |
pascal@3049 | 49 else |
pascal@3049 | 50 cp -a $_pkg/usr/share/wesnoth/translations \ |
pascal@3049 | 51 $fs/usr/share/wesnoth/ |
pascal@3049 | 52 fi |
pascal@3049 | 53 |
pascal@3049 | 54 # Remove music |
pascal@3050 | 55 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
pascal@3049 | 56 |
pascal@3049 | 57 # finalize |
pascal@3049 | 58 cp -a $_pkg/usr/share/applications $fs/usr/share |
pascal@13136 | 59 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
pascal@3049 | 60 |
pascal@3049 | 61 } |
pascal@3049 | 62 |