wok-6.x view gtklife/receipt @ rev 24776
jack1: added build dependency gcc83
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 19 17:48:51 2022 +0100 (2022-03-19) |
parents | ea56b66bde41 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtklife"
4 VERSION="5.2"
5 CATEGORY="games"
6 SHORT_DESC="Fast, featureful, open-source Conway's Life program."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://ironphoenix.org/gtklife/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ironphoenix.org/$PACKAGE/$TARBALL"
14 DEPENDS="gtk+ xorg-libXdamage"
15 BUILD_DEPENDS="gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
29 ./configure \
30 --prefix=/usr \
31 --bindir=/usr/games \
32 --with-gtk2 \
33 $CONFIGURE_ARGS &&
34 make || return 1
36 mkdir -p \
37 $DESTDIR/usr/games \
38 $DESTDIR/usr/share/gtklife
39 cp -a graphics $DESTDIR/usr/share/gtklife
40 cp -a patterns $DESTDIR/usr/share/gtklife
41 cp gtklife $DESTDIR/usr/games
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cp -a $install/* $fs
48 }