wok annotate foobillardplus/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 640a2eba2511
children 7dd01dedad38
rev   line source
pascal@14379 1 # SliTaz package receipt.
pascal@14379 2
pascal@14379 3 PACKAGE="foobillardplus"
pascal@14379 4 VERSION="3.42beta"
pascal@14379 5 CATEGORY="games"
pascal@14379 6 SHORT_DESC="FooBillard - free 3D OpenGL billard game for linux"
pascal@14379 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15002 8 LICENSE="GPL2"
pascal@14379 9 WEB_SITE="http://foobillard.sourceforge.net/"
pascal@14379 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14379 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@14379 12
pascal@14379 13 DEPENDS="bzlib freetype libglu-mesa libpng libsdl-mixer libsdl-net"
pascal@14379 14
pascal@14379 15 BUILD_DEPENDS="bash automake autoconf libsdl-dev libsdl-mixer-dev \
pascal@14379 16 libsdl-net-dev mesa-dev libglu-mesa freetype-dev libpng-dev"
pascal@14379 17
pascal@24385 18 # What is the latest version available today?
pascal@24385 19 current_version()
pascal@24385 20 {
pascal@24385 21 wget -O - https://sourceforge.net/projects/foobillardplus/files/source/ 2>/dev/null | \
pascal@24385 22 sed '/scope="row/!d;/README/d;s|.*/foobillardplus-||;s|.tar.*||;q'
pascal@24385 23 }
pascal@24385 24
pascal@14379 25 # Rules to configure and make the package.
pascal@14379 26 compile_rules()
pascal@14379 27 {
pascal@14379 28 aclocal --force
pascal@14379 29 autoconf -f
pascal@14379 30 autoheader -f
pascal@14379 31 automake --gnu -a -c -f
pascal@24391 32 ac_cv_prog_cc_c99=no ./configure &&
pascal@14379 33 make
pascal@14379 34 }
pascal@14379 35
pascal@14379 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14379 37 genpkg_rules()
pascal@14379 38 {
pascal@14379 39 mkdir -p $fs/usr/bin $fs/usr/share/foobillardplus
pascal@14379 40 cp -a $src/src/foobillardplus $fs/usr/bin
pascal@14379 41 DATADIR=$fs/usr/share/foobillardplus
pascal@14379 42 cp -a $src/data/* $DATADIR
pascal@14379 43 rm -f $DATADIR/*.ttf
pascal@14379 44 rm -f $DATADIR/*.ico
pascal@14379 45 # move to package foobillardplus-music
pascal@14379 46 rm -rf $DATADIR/music
pascal@14379 47 }