void-packages/srcpkgs/gmp/template
2016-06-21 11:59:18 +02:00

50 lines
1.1 KiB
Bash

# Template build file for 'gmp'
pkgname=gmp
version=6.1.1
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-cxx"
hostmakedepends="m4"
makedepends="zlib-devel"
short_desc="Library for arbitrary precision arithmetic"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-3"
homepage="http://gmplib.org/"
distfiles="https://gmplib.org/download/gmp/gmp-${version}.tar.xz"
checksum=d36e9c05df488ad630fff17edb50051d6432357f9ce04e34a09b3d818825e831
subpackages="gmpxx gmpxx-devel gmp-devel"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool"
pre_configure() {
autoreconf -if
}
fi
gmpxx_package() {
short_desc+=" - C++ support"
pkg_install() {
vmove usr/lib/libgmpxx.so.*
}
}
gmpxx-devel_package() {
depends="gmpxx-${version}_${revision}"
short_desc+=" - C++ development files"
pkg_install() {
vmove usr/include/gmpxx.h
vmove usr/lib/libgmpxx.a
vmove usr/lib/libgmpxx.so
}
}
gmp-devel_package() {
depends="gmp-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}