SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cocoalib"

# SliTaz package receipt.

PACKAGE="cocoalib"
VERSION="0.99650"
CATEGORY="misc"
SHORT_DESC="C++ library for computations in commutative algebra"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL3"
WEB_SITE="https://web.archive.org/web/20220622092428/https://cocoa.dima.unige.it/cocoa/cocoalib/"

TARBALL="CoCoALib-$VERSION.tgz"
WGET_URL="https://web.archive.org/web/20220621195548if_/https://cocoa.dima.unige.it/cocoa/cocoalib/tgz/$TARBALL"

DEPENDS="gcc83-lib-base gmp gsl libboost-filesystem libboost-iostreams 
    libboost-system libboost-thread libboost-tr1"
BUILD_DEPENDS="bash gcc83 gmp-dev gsl-dev libboost-filesystem-dev 
    libboost-iostreams-dev libboost-system-dev libboost-thread-dev 
    libboost-tr1-dev"

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

# Rules to configure and make the package.
compile_rules()
{
#    find | grep Makefile | sed 's/Makefile.*/Makefile_dependencies/' | \
#        xargs touch -d 197001010000

    export    CC=gcc-83    # rejected as configure parameter
    export    CXX=g++-83

    ./configure &&
    make library
    # INSTALL TARGET for CoCoALib NOT YET IMPLEMENTED
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/usr/include
    cp -a $src/lib/libcocoa.a    /$fs/usr/lib
    cp -a $src/include/*        $fs/usr/include
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)