wok-current view xpat2/receipt @ rev 25332
updated strace (5.6 -> 5.18)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 14:59:58 2022 +0100 (2022-07-23) |
parents | 6135577f4d08 |
children |
line source
1 # SliTaz package receipt
3 PACKAGE="xpat2"
4 VERSION="1.07"
5 CATEGORY="games"
6 SHORT_DESC="Soltaire games for X."
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.ibiblio.org/pub/Linux/games/solitaires/!INDEX.html"
10 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
11 WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL"
13 DEPENDS="xorg-libX11 xorg-libXt xorg-libXaw"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
19 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-src.*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 for i in xpat2.patch layout.patch ; do
27 [ -f done.$i ] && continue
28 patch -p1 < $stuff/$i
29 touch done.$i
30 done
31 cd src
32 cp $stuff/Makefile .
33 make LDFLAGS="-lX11 -lXaw -lXmu -lXt -lXpm" &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/var/games/xpat2
41 cp -a $install/usr $fs
42 mkdir -p $fs/usr/share/X11/app-defaults/
43 cp -a $stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat
44 touch $fs/var/games/xpat2/xpat.log
45 chmod 666 $fs/var/games/xpat2/xpat.log
46 }