wok annotate warzone2100/receipt @ rev 25359

updated tinyssh (20210601 -> 20220311)
author Hans-G?nter Theisgen
date Wed Jul 27 08:03:11 2022 +0100 (2022-07-27)
parents c02f18f9e836
children
rev   line source
slaxemulator@6551 1 # SliTaz package receipt.
slaxemulator@6551 2
slaxemulator@6551 3 PACKAGE="warzone2100"
slaxemulator@11252 4 VERSION="2.3.9"
slaxemulator@6551 5 CATEGORY="games"
slaxemulator@6551 6 SHORT_DESC="3D realtime strategy game on a future Earth"
slaxemulator@6551 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15000 8 LICENSE="GPL2"
slaxemulator@6551 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@23844 10 WEB_SITE="https://wz2100.net/"
slaxemulator@6551 11 WGET_URL="$SF_MIRROR/warzone2100/releases/$VERSION/$TARBALL"
slaxemulator@6551 12
pascal@13796 13 DEPENDS="libsdl-net mesa openal jpeg libpng libvorbis libtheora libmad physfs \
pascal@13796 14 quesoglc popt ttf-dejavu ttf-dejavu-extra"
pascal@13796 15 BUILD_DEPENDS="libsdl-dev libsdl-net-dev mesa-dev openal openal-dev jpeg-dev \
pascal@13796 16 libpng-dev libogg-dev libvorbis-dev libtheora-dev libmad-dev physfs-dev \
pascal@13796 17 quesoglc-dev popt-dev gawk bison flex zip unzip pkg-config zlib-dev"
slaxemulator@11252 18
pascal@24304 19 # What is the latest version available today?
pascal@24304 20 current_version()
pascal@24304 21 {
pascal@24304 22 wget -O - https://github.com/Warzone2100/warzone2100/releases 2>/dev/null | \
pascal@24304 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 24 }
pascal@24304 25
slaxemulator@6551 26 # Rules to configure and make the package.
slaxemulator@6551 27 compile_rules()
slaxemulator@6551 28 {
pascal@21386 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lvorbis"
slaxemulator@6551 30 ./configure \
slaxemulator@7490 31 --disable-motif \
slaxemulator@6551 32 $CONFIGURE_ARGS &&
slaxemulator@11252 33 make && make DESTDIR=$DESTDIR install
slaxemulator@6551 34 }
slaxemulator@6551 35
slaxemulator@6551 36 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6551 37 genpkg_rules()
slaxemulator@6551 38 {
slaxemulator@6551 39 mkdir -p $fs/usr/share/pixmaps
pascal@13796 40 cp -a $install/usr/bin $fs/usr
pascal@13796 41 cp -a $install/usr/share/applications $fs/usr/share
pascal@13796 42 cp -a $install/usr/share/icons/warzone2100.png $fs/usr/share/pixmaps
pascal@13796 43 cp -a $install/usr/share/warzone2100 $fs/usr/share
slaxemulator@6551 44 }