# SliTaz package receipt

PACKED_SIZE="188.0K"
UNPACKED_SIZE="452.0K"
PACKAGE="gmp"
VERSION="6.3.0"
CATEGORY="development"
SHORT_DESC="GNU Multiple Precision Arithmetic Library."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://gmplib.org"

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

BUILD_DEPENDS="binutils m4"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
	wget -O - $WEB_SITE 2>/dev/null | \
	sed '/current stable/!d;s|.* is ||;s|,.*||'
}

# Rules to configure and make the package.
compile_rules()
{
	./configure		\
		--enable-cxx	\
		$CONFIGURE_ARGS &&
	# make -j > 1 install fails.
	make &&
	make -j 1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cook_copy_files	*.so*
}
