wok view frogatto/receipt @ rev 25687
updated sc-im (0.8.2 -> 0.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 11 14:51:51 2024 +0100 (7 months ago) |
parents | ac8ca9758df1 |
children |
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 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
27 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 patch --input=$stuff/patches/server.cpp-1.3.1 \
34 src/server.cpp
36 # Frogatto look for multithread libbost (*-mt.so) but we don't use
37 # them in SliTaz, let's lure it.
38 for lib in $(ls /usr/lib/libboost*)
39 do
40 link=$(echo $lib | sed 's/\./-mt./')
41 ln -s $lib $link
42 done
44 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19
45 # sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp
46 # not required with version 1.3.1
48 make $MAKEFLAGS game server
50 # Remove the links previously created.
51 rm -f /usr/lib/libboost*-mt*
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/games/frogatto
58 mkdir -p $fs/usr/bin
59 mkdir -p $fs/usr/share/pixmaps
61 cp -a $src/game $fs/usr/games/frogatto
62 cp -a $src/server $fs/usr/games/frogatto
63 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps
64 cp -a $stuff/frogatto $fs/usr/bin
65 }