wok-next annotate wesnoth/receipt @ rev 20446
pixman is obsolete -> xorg-pixman
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 13:29:20 2018 +0200 (2018-02-28) |
parents | 2f3aba6cc31e |
children | 7eb047d2b438 |
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" |
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@20260 | 11 WGET_URL="$SF_MIRROR/wesnoth/wesnoth-${VERSION%.*}/$PACKAGE-$VERSION/$TARBALL" |
pascal@15000 | 12 TAGS="strategy" |
pascal@15000 | 13 |
al@19765 | 14 BUILD_DEPENDS="cairo-dev pango-dev libboost-dev libboost-regex \ |
al@19765 | 15 libboost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \ |
al@19765 | 16 libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev \ |
al@19765 | 17 findutils lua-dev libboost-serialization autoconf automake fribidi-dev \ |
pascal@20260 | 18 libboost-system libboost-program-options libboost-filesystem libboost-locale \ |
pascal@20260 | 19 libvorbis-dev cmake gettext-tools" |
pascal@20260 | 20 SPLIT="wesnoth-music" |
pascal@3049 | 21 |
pascal@3049 | 22 # Rules to configure and make the package. |
pascal@3049 | 23 compile_rules() |
pascal@3049 | 24 { |
pascal@13139 | 25 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pascal@13139 | 26 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
pascal@3049 | 27 } |
pascal@3049 | 28 |
pascal@3049 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3049 | 30 genpkg_rules() |
pascal@3049 | 31 { |
pascal@20260 | 32 case $PACKAGE in |
pascal@20260 | 33 wesnoth) |
pascal@20260 | 34 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \ |
pascal@20260 | 35 libsdl-image zlib pango cairo fontconfig \ |
pascal@20260 | 36 libboost-regex libboost-iostreams libpng fribidi \ |
pascal@20260 | 37 gcc-lib-base xcb-util libboost-system \ |
pascal@20260 | 38 libboost-program-options" |
pascal@20260 | 39 # programs |
pascal@20260 | 40 mkdir -p $fs/usr/bin |
pascal@20260 | 41 cp $install/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 42 |
pascal@20260 | 43 # data |
pascal@20260 | 44 mkdir -p $fs/usr/share/wesnoth/ |
pascal@20260 | 45 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
pascal@20260 | 46 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
pascal@20260 | 47 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
pascal@20260 | 48 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 49 |
pascal@20260 | 50 mkdir $fs/usr/share/wesnoth/translations |
pascal@20260 | 51 if [ ! "$LOCALE" = "" ]; then |
pascal@20260 | 52 for i in $LOCALE |
pascal@20260 | 53 do |
pascal@20260 | 54 cp -a $install/usr/share/wesnoth/translations/$i \ |
pascal@20260 | 55 $fs/usr/share/wesnoth/translations |
pascal@20260 | 56 done |
pascal@20260 | 57 else |
pascal@20260 | 58 cp -a $install/usr/share/wesnoth/translations \ |
pascal@20260 | 59 $fs/usr/share/wesnoth/ |
pascal@20260 | 60 fi |
pascal@3049 | 61 |
pascal@20260 | 62 # Remove music |
pascal@20260 | 63 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
pascal@3049 | 64 |
pascal@20260 | 65 # finalize |
pascal@20260 | 66 cp -a $install/usr/share/applications $fs/usr/share |
pascal@20260 | 67 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@20260 | 68 ;; |
pascal@20260 | 69 wesnoth-music) |
pascal@20260 | 70 CAT="games|music files" |
pascal@20260 | 71 mkdir -p $fs/usr/share/wesnoth/data/core |
pascal@20260 | 72 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core |
pascal@20260 | 73 ;; |
pascal@20260 | 74 esac |
pascal@3049 | 75 } |