SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xpat2"

# SliTaz package receipt

PACKAGE="xpat2"
VERSION="1.07"
CATEGORY="games"
SHORT_DESC="Soltaire games for X."
MAINTAINER="b1+slitaz@nagel.org"
LICENSE="GPL2"
WEB_SITE="http://www.ibiblio.org/pub/Linux/games/solitaires/!INDEX.html"
TARBALL="$PACKAGE-$VERSION-src.tar.gz"
WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL"

DEPENDS="xorg-libX11 xorg-libXt xorg-libXaw"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-src.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    for i in xpat2.patch layout.patch ; do
        [ -f done.$i ] && continue
        patch -p1 < $stuff/$i
        touch done.$i
    done
    cd src
    cp $stuff/Makefile .
    make LDFLAGS="-lX11 -lXaw -lXmu -lXt -lXpm" &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/var/games/xpat2
    cp -a $install/usr $fs
    mkdir -p $fs/usr/share/X11/app-defaults/
    cp -a $stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat
    touch $fs/var/games/xpat2/xpat.log
    chmod 666 $fs/var/games/xpat2/xpat.log
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)