wok-next annotate wesnoth/receipt @ rev 21037
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 06 16:35:54 2018 +0200 (2018-11-06) |
parents | a244e109372e |
children | 5669e8b3be70 |
rev | line source |
---|---|
pascal@20260 | 1 # SliTaz package receipt v2. |
pascal@3049 | 2 |
pascal@3049 | 3 PACKAGE="wesnoth" |
pascal@20260 | 4 VERSION="1.12.6" |
pascal@3049 | 5 CATEGORY="games" |
pascal@3049 | 6 SHORT_DESC="Turn based strategy game" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://www.wesnoth.org/" |
al@21020 | 10 |
pascal@15000 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@21020 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15000 | 13 |
al@20915 | 14 BUILD_DEPENDS="cairo-dev pango-dev boost-dev boost-regex \ |
al@20915 | 15 boost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \ |
al@20454 | 16 libsdl-image-dev libsdl-net-dev libpng16-dev freetype-dev fontconfig-dev \ |
al@20915 | 17 findutils lua-dev boost-serialization autoconf automake fribidi-dev \ |
al@20915 | 18 boost-system boost-program-options boost-filesystem boost-locale \ |
al@21020 | 19 libvorbis-dev cmake gettext" |
al@21020 | 20 SPLIT="$PACKAGE-music" |
pascal@3049 | 21 |
al@21020 | 22 compile_rules() { |
al@21020 | 23 cmake \ |
al@21020 | 24 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@21020 | 25 . && |
al@21020 | 26 make $MAKEFLAGS && |
al@21020 | 27 make DESTDIR=$install install |
pascal@3049 | 28 } |
pascal@3049 | 29 |
al@21020 | 30 genpkg_rules() { |
pascal@20260 | 31 case $PACKAGE in |
al@21020 | 32 wesnoth) |
al@21020 | 33 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \ |
pascal@20260 | 34 libsdl-image zlib pango cairo fontconfig \ |
al@20915 | 35 boost-regex boost-iostreams libpng16 fribidi \ |
al@20915 | 36 gcc-lib-base xorg-xcb-util boost-system \ |
al@20915 | 37 boost-program-options" |
al@21020 | 38 # programs |
al@21020 | 39 mkdir -p $fs/usr/bin |
al@21020 | 40 cp $install/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 41 |
al@21020 | 42 # data |
al@21020 | 43 mkdir -p $fs/usr/share/wesnoth/ |
al@21020 | 44 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
al@21020 | 45 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
al@21020 | 46 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
al@21020 | 47 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 48 |
al@21020 | 49 mkdir $fs/usr/share/wesnoth/translations |
al@21020 | 50 if [ -n "$LOCALE" ]; then |
al@21020 | 51 for i in $LOCALE; do |
al@21020 | 52 cp -a $install/usr/share/wesnoth/translations/$i \ |
al@21020 | 53 $fs/usr/share/wesnoth/translations |
al@21020 | 54 done |
al@21020 | 55 else |
al@21020 | 56 cp -a $install/usr/share/wesnoth/translations \ |
al@21020 | 57 $fs/usr/share/wesnoth/ |
al@21020 | 58 fi |
pascal@3049 | 59 |
al@21020 | 60 # Remove music |
al@21020 | 61 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2>/dev/null |
al@21020 | 62 |
al@21020 | 63 # finalize |
al@21020 | 64 cp -a $install/usr/share/applications $fs/usr/share |
al@21020 | 65 cp -a $install/usr/share/pixmaps $fs/usr/share |
al@21020 | 66 TAGS="strategy" |
al@21020 | 67 ;; |
al@21020 | 68 *-music) |
al@21020 | 69 CAT="games|music files" |
al@21020 | 70 mkdir -p $fs/usr/share/wesnoth/data/core |
al@21020 | 71 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core |
al@21020 | 72 ;; |
pascal@20260 | 73 esac |
pascal@3049 | 74 } |