wok-current view lbreakout2/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 65ff25c4de90 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lbreakout2"
4 VERSION="2.6.5"
5 CATEGORY="games"
6 SHORT_DESC="Breakout clone."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://lgames.sourceforge.net/index.php?project=LBreakout2"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="$SF_MIRROR/project/lgames/$PACKAGE/${VERSION%.*}/$TARBALL"
15 DEPENDS="libpng libsdl libsdl-mixer zlib"
16 BUILD_DEPENDS="libpng-dev libsdl-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/lgames/files/lbreakout2/ 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;/tar/!d;s|.*/lbreakout2-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|/usr/doc|/usr/share/doc|' \
30 configure*
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --disable-sdltest \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share $fs/usr
49 rm -rf $fs/usr/share/doc
50 cp -a stuff/* $fs
51 }