wok annotate wesnoth/receipt.old @ rev 23545
updated python-pyserial (2.7 -> 3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 06 17:31:37 2020 +0100 (2020-04-06) |
parents | |
children |
rev | line source |
---|---|
Hans-G?nter@21575 | 1 # SliTaz package receipt. |
Hans-G?nter@21575 | 2 |
Hans-G?nter@21575 | 3 PACKAGE="wesnoth" |
Hans-G?nter@21575 | 4 VERSION="1.10.3" |
Hans-G?nter@21575 | 5 CATEGORY="games" |
Hans-G?nter@21575 | 6 SHORT_DESC="Turn based strategy game" |
Hans-G?nter@21575 | 7 MAINTAINER="mimas@slitaz.org" |
Hans-G?nter@21575 | 8 LICENSE="GPL2" |
Hans-G?nter@21575 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21575 | 10 WEB_SITE="http://www.wesnoth.org/" |
Hans-G?nter@21575 | 11 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" |
Hans-G?nter@21575 | 12 TAGS="strategy" |
Hans-G?nter@21575 | 13 |
Hans-G?nter@21575 | 14 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \ |
Hans-G?nter@21575 | 15 cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \ |
Hans-G?nter@21575 | 16 xcb-util libboost-system libboost-program-options" |
Hans-G?nter@21575 | 17 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \ |
Hans-G?nter@21575 | 18 libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \ |
Hans-G?nter@21575 | 19 lua-dev libboost-serialization-dev autoconf automake fribidi-dev \ |
Hans-G?nter@21575 | 20 libboost-system-dev libboost-program-options-dev cmake" |
Hans-G?nter@21575 | 21 |
Hans-G?nter@21575 | 22 # Rules to configure and make the package. |
Hans-G?nter@21575 | 23 compile_rules() |
Hans-G?nter@21575 | 24 { |
Hans-G?nter@21575 | 25 cd $src |
Hans-G?nter@21575 | 26 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
Hans-G?nter@21575 | 27 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
Hans-G?nter@21575 | 28 } |
Hans-G?nter@21575 | 29 |
Hans-G?nter@21575 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@21575 | 31 genpkg_rules() |
Hans-G?nter@21575 | 32 { |
Hans-G?nter@21575 | 33 # programs |
Hans-G?nter@21575 | 34 mkdir -p $fs/usr/bin |
Hans-G?nter@21575 | 35 cp $install/usr/bin/wesnoth $fs/usr/bin/ |
Hans-G?nter@21575 | 36 |
Hans-G?nter@21575 | 37 # data |
Hans-G?nter@21575 | 38 mkdir -p $fs/usr/share/wesnoth/ |
Hans-G?nter@21575 | 39 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
Hans-G?nter@21575 | 40 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
Hans-G?nter@21575 | 41 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
Hans-G?nter@21575 | 42 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
Hans-G?nter@21575 | 43 |
Hans-G?nter@21575 | 44 mkdir $fs/usr/share/wesnoth/translations |
Hans-G?nter@21575 | 45 if [ ! "$LOCALE" = "" ]; then |
Hans-G?nter@21575 | 46 for i in $LOCALE |
Hans-G?nter@21575 | 47 do |
Hans-G?nter@21575 | 48 cp -a $install/usr/share/wesnoth/translations/$i \ |
Hans-G?nter@21575 | 49 $fs/usr/share/wesnoth/translations |
Hans-G?nter@21575 | 50 done |
Hans-G?nter@21575 | 51 else |
Hans-G?nter@21575 | 52 cp -a $install/usr/share/wesnoth/translations \ |
Hans-G?nter@21575 | 53 $fs/usr/share/wesnoth/ |
Hans-G?nter@21575 | 54 fi |
Hans-G?nter@21575 | 55 |
Hans-G?nter@21575 | 56 # Remove music |
Hans-G?nter@21575 | 57 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
Hans-G?nter@21575 | 58 |
Hans-G?nter@21575 | 59 # finalize |
Hans-G?nter@21575 | 60 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@21575 | 61 cp -a $install/usr/share/pixmaps $fs/usr/share |
Hans-G?nter@21575 | 62 |
Hans-G?nter@21575 | 63 } |
Hans-G?nter@21575 | 64 |