SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mpc-library"

# SliTaz package receipt.

PACKAGE="mpc-library"
VERSION="1.2.1"
CATEGORY="development"
SHORT_DESC="A C library for the arithmetic of complex numbers."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.multiprecision.org/"

SOURCE="mpc"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"

DEPENDS="gmp mpfr"
BUILD_DEPENDS="gmp-dev mpfr-dev"

HOST_ARCH="i486 arm"

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

compile_rules()
{
    ./configure $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    include
    cook_copy_folders    lib
    
    # Ensure remove .la files
    find $fs -name "*.la" -delete
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)