wok-6.x view frogatto/receipt @ rev 24262

updated perl-text-template (1.58 -> 1.60)
author Hans-G?nter Theisgen
date Sun Jan 02 10:18:15 2022 +0100 (2022-01-02)
parents 4d023db68233
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="frogatto"
4 VERSION="1.3.1"
5 CATEGORY="games"
6 SHORT_DESC="An old-school 2d platform game, starring a certain quixotic frog."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.frogatto.com"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL"
14 DEPENDS="frogatto-data glew libboost-date-time libboost-iostreams \
15 libboost-regex libboost-system libboost-thread libpng \
16 libsdl libsdl-image libsdl-mixer libsdl-ttf mesa xorg-server"
17 BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache coreutils glew-dev \
18 libboost-date-time-dev libboost-iostreams-dev libboost-regex-dev \
19 libboost-system-dev libboost-thread-dev libpng-dev libsdl-dev \
20 libsdl-image-dev libsdl-mixer-dev libsdl-ttf-dev mesa-dev \
21 xorg-server-dev"
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 patch --input=$stuff/patches/server.cpp-1.3.1 \
33 src/server.cpp
35 # Frogatto look for multithread libbost (*-mt.so) but we don't use
36 # them in SliTaz, let's lure it.
37 for lib in $(ls /usr/lib/libboost*)
38 do
39 link=$(echo $lib | sed 's/\./-mt./')
40 ln -s $lib $link
41 done
43 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19
44 # sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp
45 # not required with version 1.3.1
47 make $MAKEFLAGS game server
49 # Remove the links previously created.
50 rm -f /usr/lib/libboost*-mt*
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/games/frogatto
57 mkdir -p $fs/usr/bin
58 mkdir -p $fs/usr/share/pixmaps
60 cp -a $src/game $fs/usr/games/frogatto
61 cp -a $src/server $fs/usr/games/frogatto
62 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps
63 cp -a $stuff/frogatto $fs/usr/bin
64 }