wok-current view bygfoot/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 5f6c5106b1f5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bygfoot"
4 VERSION="2.3.2"
5 CATEGORY="games"
6 SHORT_DESC="Manage your own football (soccer) team in a league season."
7 MAINTAINER="ben@seawolfsanctuary.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.bygfoot.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="acl atk freetype glib gtk+ pango"
15 BUILD_DEPENDS="atk-dev freetype-dev glib-dev gtk+-dev pango-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/bygfoot/files/bygfoot-unstable/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;/binary/d;s|.*/bygfoot-||;s|.tar.*||;q'
23 }
25 compile_rules()
26 {
27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
30 chmod +x configure
31 sed -i 's/^top_srcdir/top_builddir = @top_builddir@\n&/' po/Makefile.in.in
33 ./configure \
34 --prefix=/usr \
35 --bindir=/usr/games \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/
46 cp -a $install/usr $fs/
48 # Copy .desktop file:
49 cp -a $stuff/* $fs/usr
50 }