wok view foobillard/receipt @ rev 25495

Up expat (2.5.0), CVE-2022-43680
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 02 10:14:28 2022 +0000 (23 months ago)
parents 640a2eba2511
children
line source
1 # SliTaz package receipt.
3 PACKAGE="foobillard"
4 VERSION="3.0a"
5 CATEGORY="games"
6 SHORT_DESC="An OpenGL billiard game for Linux."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://foobillard.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="libsdl freetype libpng mesa libglu-mesa"
14 BUILD_DEPENDS="libsdl-dev freetype-dev libpng-dev libglu-mesa mesa-dev zlib-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/foobillard/files/FooBillard-Sources/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/foobillard-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 sed -i -e 's/-lXaw//' -e 's/-lXi//' src/Makefile.in
28 patch -p1 < $stuff/03_bugfixes
29 patch -p1 < $stuff/05_foul_explanation
30 patch -p1 < $stuff/06_show_ball_to_hit
31 patch -p0 < $stuff/snooker_reset.patch
32 patch -p0 < $stuff/snooker_draw.patch
34 ./configure \
35 --prefix=/usr \
36 --enable-nvidia=no \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make && 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
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share/foobillard $fs/usr/share
49 }