wok annotate xpat2/receipt @ rev 25037

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