46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Template file for 'gmp'
|
|
pkgname=gmp
|
|
version=6.2.0
|
|
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=258e6cd51b3fbdfc185c716d55f82c08aff57df0c6fbd143cf6ed561267a1526
|
|
|
|
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
|
|
}
|
|
}
|