47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
# Template file for 'gmp'
|
|
pkgname=gmp
|
|
version=6.3.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="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="http://gmplib.org/"
|
|
changelog="https://gmplib.org/repo/gmp/raw-file/tip/NEWS"
|
|
distfiles="${GNU_SITE}/gmp/gmp-${version}.tar.xz"
|
|
checksum=a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
|
|
|
|
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
|
|
}
|
|
}
|