wok annotate frogatto/receipt @ rev 25602
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 09:27:49 2023 +0000 (18 months ago) |
parents | ac8ca9758df1 |
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@25602 | 23 # What is the latest version available today? |
pascal@24055 | 24 current_version() |
pascal@24055 | 25 { |
pascal@24299 | 26 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25602 | 27 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 28 } |
pascal@24055 | 29 |
gokhlayeh@6437 | 30 # Rules to configure and make the package. |
gokhlayeh@6437 | 31 compile_rules() |
gokhlayeh@6437 | 32 { |
Hans-G?nter@21767 | 33 patch --input=$stuff/patches/server.cpp-1.3.1 \ |
Hans-G?nter@21765 | 34 src/server.cpp |
gokhlayeh@6437 | 35 |
gokhlayeh@6437 | 36 # Frogatto look for multithread libbost (*-mt.so) but we don't use |
gokhlayeh@6437 | 37 # them in SliTaz, let's lure it. |
Hans-G?nter@21765 | 38 for lib in $(ls /usr/lib/libboost*) |
Hans-G?nter@21765 | 39 do |
gokhlayeh@6437 | 40 link=$(echo $lib | sed 's/\./-mt./') |
gokhlayeh@6437 | 41 ln -s $lib $link |
Hans-G?nter@21765 | 42 done |
gokhlayeh@6437 | 43 |
al@13847 | 44 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19 |
Hans-G?nter@21765 | 45 # sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp |
Hans-G?nter@21765 | 46 # not required with version 1.3.1 |
al@13847 | 47 |
gokhlayeh@11574 | 48 make $MAKEFLAGS game server |
gokhlayeh@6437 | 49 |
gokhlayeh@6437 | 50 # Remove the links previously created. |
gokhlayeh@6437 | 51 rm -f /usr/lib/libboost*-mt* |
gokhlayeh@6437 | 52 } |
gokhlayeh@6437 | 53 |
gokhlayeh@6437 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@6437 | 55 genpkg_rules() |
gokhlayeh@6437 | 56 { |
Hans-G?nter@21765 | 57 mkdir -p $fs/usr/games/frogatto |
Hans-G?nter@21765 | 58 mkdir -p $fs/usr/bin |
Hans-G?nter@21765 | 59 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21765 | 60 |
Hans-G?nter@21765 | 61 cp -a $src/game $fs/usr/games/frogatto |
Hans-G?nter@21765 | 62 cp -a $src/server $fs/usr/games/frogatto |
Hans-G?nter@21765 | 63 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps |
Hans-G?nter@21765 | 64 cp -a $stuff/frogatto $fs/usr/bin |
gokhlayeh@6437 | 65 } |