void-packages/srcpkgs/libmpc/template

35 lines
881 B
Bash

# Template file for 'libmpc'
pkgname=libmpc
version=1.2.1
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="EGREP=egrep"
makedepends="gmp-devel mpfr-devel"
short_desc="C library for the arithmetic of complex numbers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="http://www.multiprecision.org"
distfiles="${GNU_SITE}/mpc/mpc-${version}.tar.gz"
checksum=17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
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
}
}