void-packages/srcpkgs/libmpc/template

36 lines
923 B
Plaintext
Raw Normal View History

# Template build file for 'libmpc'
pkgname=libmpc
2014-01-19 09:17:11 +01:00
version=1.0.2
2014-08-26 08:23:27 +02:00
revision=2
bootstrap=yes
wrksrc="mpc-${version}"
build_style=gnu-configure
2012-01-11 19:27:30 +01:00
configure_args="EGREP=egrep"
makedepends="gmp-devel mpfr-devel"
short_desc="C library for the arithmetic of complex numbers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.multiprecision.org"
license="LGPL-3"
distfiles="http://www.multiprecision.org/mpc/download/mpc-${version}.tar.gz"
2014-01-19 09:17:11 +01:00
checksum=b561f54d8a479cee3bc891ee52735f18ff86712ba30f036f8b8537bae380c488
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() {
2014-08-26 08:23:27 +02:00
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
}
}