SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "extrema"

# SliTaz package receipt.

PACKAGE="extrema"
VERSION="4.4.5"
CATEGORY="office"
SHORT_DESC="Powerful visualization and data analysis tool."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://exsitewebware.com/extrema/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="data visualization analysis"

DEPENDS="gtk+ wxWidgets28 xorg-libXxf86vm libxml2"
BUILD_DEPENDS="gtk+-dev wxWidgets28-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/extrema/files/extrema/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*%20v||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i "s|^pkgdatadir = |&$DESTDIR|" src/Makefile*
    sed -i 's/<vector>/&\n#include <cstddef>/' \
        src/Graphics/GRA_thiessenTriangulation.h
    mkdir -p $DESTDIR/usr/share/extrema
    ./configure \
        --enable-shared \
        $CONFIGURE_ARGS &&
    make &&    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/share/extrema $fs/usr/share
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)