wok-next annotate wesnoth/receipt @ rev 19841
Up adwaita-icon-theme, at-spi2-atk, at-spi2-core, elementary-icon-theme, gtk+, gtk+3, hydroxygen-iconset, libepoxy, paper-icon-theme, slitaz-icons-elementary, slitaz-icons-hydroxygen, slitaz-icons-paper. Add faience-icon-theme.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 17 16:45:06 2017 +0300 (2017-08-17) |
parents | 380ffe05937a |
children | 0d1f42a8a414 |
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" |
al@19765 | 17 BUILD_DEPENDS="cairo-dev pango-dev libboost-dev libboost-regex \ |
al@19765 | 18 libboost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \ |
al@19765 | 19 libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev \ |
al@19765 | 20 findutils lua-dev libboost-serialization autoconf automake fribidi-dev \ |
al@19765 | 21 libboost-system libboost-program-options cmake" |
pascal@3049 | 22 |
pascal@3049 | 23 # Rules to configure and make the package. |
pascal@3049 | 24 compile_rules() |
pascal@3049 | 25 { |
pascal@3049 | 26 cd $src |
pascal@13139 | 27 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pascal@13139 | 28 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
pascal@3049 | 29 } |
pascal@3049 | 30 |
pascal@3049 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3049 | 32 genpkg_rules() |
pascal@3049 | 33 { |
pascal@3049 | 34 # programs |
pascal@3049 | 35 mkdir -p $fs/usr/bin |
pascal@15000 | 36 cp $install/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 37 |
pascal@3049 | 38 # data |
pascal@3049 | 39 mkdir -p $fs/usr/share/wesnoth/ |
pascal@15000 | 40 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
pascal@15000 | 41 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
pascal@15000 | 42 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
pascal@15000 | 43 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 44 |
pascal@3049 | 45 mkdir $fs/usr/share/wesnoth/translations |
pascal@3049 | 46 if [ ! "$LOCALE" = "" ]; then |
pascal@3049 | 47 for i in $LOCALE |
pascal@3049 | 48 do |
pascal@15000 | 49 cp -a $install/usr/share/wesnoth/translations/$i \ |
pascal@3049 | 50 $fs/usr/share/wesnoth/translations |
pascal@3049 | 51 done |
pascal@3049 | 52 else |
pascal@15000 | 53 cp -a $install/usr/share/wesnoth/translations \ |
pascal@3049 | 54 $fs/usr/share/wesnoth/ |
pascal@3049 | 55 fi |
pascal@3049 | 56 |
pascal@3049 | 57 # Remove music |
pascal@3050 | 58 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
pascal@3049 | 59 |
pascal@3049 | 60 # finalize |
pascal@15000 | 61 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15000 | 62 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@3049 | 63 |
pascal@3049 | 64 } |
pascal@3049 | 65 |