wok-current annotate lbreakout2/receipt @ rev 24435

updated consolekit2 and consolekit2-dev (1.2.1 -> 1.2.4)
author Hans-G?nter Theisgen
date Sun Feb 13 07:06:09 2022 +0100 (2022-02-13)
parents 663233baf831
children 65ff25c4de90
rev   line source
pascal@1958 1 # SliTaz package receipt.
pascal@1958 2
pascal@1958 3 PACKAGE="lbreakout2"
Hans-G?nter@22994 4 VERSION="2.6.5"
pascal@1958 5 CATEGORY="games"
pascal@1958 6 SHORT_DESC="Breakout clone."
pascal@1958 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="GPL2"
Hans-G?nter@22994 9 WEB_SITE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
Hans-G?nter@22994 10
pascal@1958 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1958 12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@22994 13 WGET_URL="http://downloads.sourceforge.net/project/lgames/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@15379 14
Hans-G?nter@22994 15 DEPENDS="libpng libsdl libsdl-mixer zlib"
pankso@3425 16 BUILD_DEPENDS="libpng-dev libsdl-dev"
pascal@1958 17
pascal@24411 18 # What is the latest version available today?
pascal@24411 19 current_version()
pascal@24411 20 {
pascal@24411 21 wget -O - https://sourceforge.net/projects/lgames/files/lbreakout2/ 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 23 sed '/scope="row/!d;/tar/!d;s|.*/lbreakout2-||;s|.tar.*||;q'
pascal@24411 24 }
pascal@24411 25
pascal@1958 26 # Rules to configure and make the package.
pascal@1958 27 compile_rules()
pascal@1958 28 {
Hans-G?nter@22994 29 sed -i 's|/usr/doc|/usr/share/doc|' \
Hans-G?nter@22994 30 configure*
Hans-G?nter@22994 31
Hans-G?nter@22994 32 ./configure \
Hans-G?nter@22994 33 --prefix=/usr \
Hans-G?nter@22994 34 --infodir=/usr/share/info \
Hans-G?nter@22994 35 --disable-sdltest \
Hans-G?nter@22994 36 --mandir=/usr/share/man \
Hans-G?nter@22994 37 $CONFIGURE_ARGS &&
pascal@2479 38 make &&
pascal@15379 39 make DESTDIR=$DESTDIR install
pascal@1958 40 }
pascal@1958 41
pascal@1958 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1958 43 genpkg_rules()
pascal@1958 44 {
pascal@1958 45 mkdir -p $fs/usr
Hans-G?nter@22994 46
Hans-G?nter@22994 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22994 48 cp -a $install/usr/share $fs/usr
Hans-G?nter@22994 49 rm -rf $fs/usr/share/doc
Hans-G?nter@22994 50 cp -a stuff/* $fs
pascal@1958 51 }