wok-current view foobillard/receipt @ rev 25282

updated rlwrap (0.43 -> 0.45.2)
author Hans-G?nter Theisgen
date Mon Jul 18 15:29:34 2022 +0100 (2022-07-18)
parents fd54f14fe0be
children 7dd01dedad38
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="http://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 }