void-packages/srcpkgs/libmpc/template

35 lines
929 B
Bash

# Template file for 'libmpc'
pkgname=libmpc
version=1.3.1
revision=1
bootstrap=yes
build_style=gnu-configure
makedepends="gmp-devel mpfr-devel"
short_desc="C library for the arithmetic of complex numbers"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="LGPL-3.0-or-later"
homepage="https://www.multiprecision.org/mpc/"
changelog="https://gitlab.inria.fr/mpc/mpc/-/raw/master/NEWS"
distfiles="${GNU_SITE}/mpc/mpc-${version}.tar.gz"
checksum=ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
if [ -z "$CHROOT_READY" ]; then
CFLAGS="-I${XBPS_MASTERDIR}/usr/include"
LDFLAGS="-L${XBPS_MASTERDIR}/usr/lib"
fi
post_install() {
mv ${DESTDIR}/usr/share/info/{mpc,libmpc}.info
}
libmpc-devel_package() {
depends="${makedepends} libmpc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}