wok-6.x view mpc-library/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | 81415da32329 |
children | 460a9ffd446e |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpc-library"
4 VERSION="1.1.0"
5 CATEGORY="development"
6 SHORT_DESC="A C library for the arithmetic of complex numbers."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.multiprecision.org/"
11 SOURCE="mpc"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
15 DEPENDS="gmp mpfr"
16 BUILD_DEPENDS="gmp-dev mpfr-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 compile_rules()
28 {
29 ./configure $CONFIGURE_ARGS &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/include $fs/usr
41 }