wok-current annotate wesnoth/receipt @ rev 21903
updated shaarli again (0.10.3 -> 0.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 04 13:29:43 2019 +0100 (2019-10-04) |
parents | 4cc128a1bc43 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@3049 | 1 # SliTaz package receipt. |
pascal@3049 | 2 |
pascal@3049 | 3 PACKAGE="wesnoth" |
Hans-G?nter@21565 | 4 VERSION="1.14.7" |
pascal@3049 | 5 CATEGORY="games" |
Hans-G?nter@21565 | 6 TAGS="strategy" |
Hans-G?nter@21565 | 7 SHORT_DESC="Turn based strategy game." |
pascal@3049 | 8 MAINTAINER="mimas@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@21565 | 10 WEB_SITE="https://www.wesnoth.org/" |
pascal@15000 | 11 |
Hans-G?nter@21565 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21565 | 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz" |
Hans-G?nter@21565 | 14 |
Hans-G?nter@21565 | 15 DEPENDS="cairo fontconfig fribidi gcc-lib-base libboost-filesystem \ |
Hans-G?nter@21565 | 16 libboost-iostreams libboost-math libboost-program-options libboost-regex \ |
Hans-G?nter@21565 | 17 libboost-system libboost-thread libpng libsdl2 libsdl2-image \ |
Hans-G?nter@21565 | 18 libsdl2-mixer libsdl2-net libsdl2-ttf pango xcb-util zlib" |
Hans-G?nter@21565 | 19 BUILD_DEPENDS="autoconf automake cairo-dev cmake dbus-dev findutils \ |
Hans-G?nter@21565 | 20 fontconfig-dev freetype-dev fribidi-dev gcc83 libboost-filesystem-dev \ |
Hans-G?nter@21565 | 21 libboost-iostreams-dev libboost-math-dev libboost-program-options-dev \ |
Hans-G?nter@21565 | 22 libboost-regex-dev libboost-serialization-dev libboost-system-dev \ |
Hans-G?nter@21565 | 23 libboost-thread-dev libpng-dev libsdl2-dev libsdl2-image-dev \ |
Hans-G?nter@21566 | 24 libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf libsdl2-ttf-dev \ |
Hans-G?nter@21565 | 25 lua-dev openssl-dev pango-dev" |
pascal@3049 | 26 |
pascal@3049 | 27 # Rules to configure and make the package. |
pascal@3049 | 28 compile_rules() |
pascal@3049 | 29 { |
Hans-G?nter@21565 | 30 export CC=gcc-83 |
Hans-G?nter@21565 | 31 export CXX=g++-83 |
Hans-G?nter@21565 | 32 |
Hans-G?nter@21565 | 33 cmake -DCMAKE_INSTALL_PREFIX=/usr . && |
Hans-G?nter@21565 | 34 make $MAKEFLAGS && |
Hans-G?nter@21565 | 35 make DESTDIR=$DESTDIR install |
pascal@3049 | 36 } |
pascal@3049 | 37 |
pascal@3049 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3049 | 39 genpkg_rules() |
pascal@3049 | 40 { |
pascal@3049 | 41 # programs |
pascal@3049 | 42 mkdir -p $fs/usr/bin |
Hans-G?nter@21565 | 43 cp $install/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 44 |
pascal@3049 | 45 # data |
pascal@3049 | 46 mkdir -p $fs/usr/share/wesnoth/ |
Hans-G?nter@21565 | 47 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
Hans-G?nter@21565 | 48 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
Hans-G?nter@21565 | 49 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
Hans-G?nter@21565 | 50 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 51 |
pascal@3049 | 52 mkdir $fs/usr/share/wesnoth/translations |
pascal@3049 | 53 if [ ! "$LOCALE" = "" ]; then |
pascal@3049 | 54 for i in $LOCALE |
pascal@3049 | 55 do |
Hans-G?nter@21565 | 56 cp -a $install/usr/share/wesnoth/translations/$i \ |
Hans-G?nter@21565 | 57 $fs/usr/share/wesnoth/translations |
Hans-G?nter@21565 | 58 done |
pascal@3049 | 59 else |
pascal@15000 | 60 cp -a $install/usr/share/wesnoth/translations \ |
pascal@3049 | 61 $fs/usr/share/wesnoth/ |
pascal@3049 | 62 fi |
pascal@3049 | 63 |
pascal@3049 | 64 # Remove music |
pascal@3050 | 65 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
pascal@3049 | 66 |
pascal@3049 | 67 # finalize |
Hans-G?nter@21565 | 68 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@21565 | 69 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@3049 | 70 } |