wok-6.x view bzflag/receipt @ rev 25476

Up foomatic-db-nonfree (20221012)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 13 16:28:13 2022 +0000 (2022-10-13)
parents 1d9e2a91579d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bzflag"
4 VERSION="2.4.18"
5 CATEGORY="games"
6 SHORT_DESC="A multiplayer 3D tank battle game."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://bzflag.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="c-ares curl gcc83-lib-base glew libsdl mesa"
15 BUILD_DEPENDS="c-ares-dev curl-dev gcc83 glew-dev libsdl-dev
16 mesa-dev util-linux-uuid-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/bzflag/files/bzflag%20source/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/bzflag-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|uname -m|echo i486|' \
30 package/Makefile*
31 # src/other/glew/config/Makefile.linux
33 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ltinfo"
35 ./configure \
36 CC=gcc-83 \
37 CXX=g++-83 \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/share/bzflag $fs/usr/share
50 }