void-packages/srcpkgs/gmp/template

46 lines
1.1 KiB
Bash

# Template file for 'gmp'
pkgname=gmp
version=6.2.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="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="http://gmplib.org/"
distfiles="https://gmplib.org/download/gmp/gmp-${version}.tar.xz"
checksum=fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
subpackages="gmpxx gmpxx-devel gmp-devel"
gmpxx_package() {
short_desc+=" - C++ support"
pkg_install() {
vmove usr/lib/libgmpxx.so.*
}
}
gmpxx-devel_package() {
depends="gmp-devel-${version}_${revision} 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
vmove usr/lib/pkgconfig/gmpxx.pc
}
}
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/lib/pkgconfig
vmove usr/share
}
}