35 lines
926 B
Bash
35 lines
926 B
Bash
# Template build file for 'libmpc'
|
|
pkgname=libmpc
|
|
version=1.0.3
|
|
revision=1
|
|
bootstrap=yes
|
|
wrksrc="mpc-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="EGREP=egrep"
|
|
makedepends="gmp-devel mpfr-devel"
|
|
short_desc="C library for the arithmetic of complex numbers"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.multiprecision.org"
|
|
license="LGPL-3"
|
|
distfiles="http://www.multiprecision.org/mpc/download/mpc-${version}.tar.gz"
|
|
checksum=617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3
|
|
|
|
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
|
|
}
|
|
}
|