SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gnuchess"

# SliTaz package receipt.

PACKAGE="gnuchess"
VERSION="6.2.9"
CATEGORY="games"
TAGS="chess"
SHORT_DESC="GNU Chess lets most modern computers play a full game of chess."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/chess/chess.html"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$GNU_MIRROR/chess/$TARBALL"

SUGGESTED="gnuchess-lang"
DEPENDS="ncurses readline"
BUILD_DEPENDS="ncurses-dev readline-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    #find -name '*.c' | xargs sed -i 's/getline/get_line/g' src/common.h
    #sed -i 's/input_thread/static_input_thread/' src/input.c

    chmod    a+x    install-sh &&

    ./configure            \
        --libexecdir=/usr/lib    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr    $fs
    rm -rf            $fs/usr/share/man

    # moved to package gnuchess-lang
    rm -rf            $fs/usr/share/locale
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)