SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pari"

# SliTaz package receipt.

PACKAGE="pari"
VERSION="2.13.4"
CATEGORY="utilities"
SHORT_DESC="Computer algebra system designed for fast computations in number theory."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://pari.math.u-bordeaux.fr/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}pub/$PACKAGE/OLD/${VERSION%.*}/$TARBALL"

DEPENDS="glibc-base gmp libxcb ncurses readline xorg-libX11 xorg-libXau \
    xorg-libXdmcp"
BUILD_DEPENDS="bash gmp-dev readline-dev texinfo xorg-libX11-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    ln -s /bin/bash /bin/sh
    mkdir build
    # this configure does not respect $CONFIGURE_ARGS :(
    ./Configure            \
        --host=$ARCH        \
        --graphic=X11        \
        --builddir=build    \
        --prefix=/usr &&
    sed -i 's|TEX   = tex|TEX   = texi2pdf|' doc/Makefile
    cd build
    bash -c make all
    make DESTDIR=$install install 2>&1 |         \
    sed     -e "s/dvi': No such/dvi': no such/"    \
        -e "s/ps': No such/ps': no such/"

    rm -rf $src/build
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/pari
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/pari    $fs/usr/lib
    cp -a $install/usr/share/pari    $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)