wok-6.x annotate frogatto/receipt @ rev 25252

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