38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
|
# Template file for 'givaro'
|
||
|
pkgname=givaro
|
||
|
version=4.1.1
|
||
|
revision=1
|
||
|
build_style=gnu-configure
|
||
|
makedepends="gmpxx-devel"
|
||
|
short_desc="C++ library for arithmetic and algebraic computations"
|
||
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||
|
license="CECILL-B"
|
||
|
homepage="https://github.com/linbox-team/givaro"
|
||
|
distfiles="https://github.com/linbox-team/givaro/releases/download/v${version}/givaro-${version}.tar.gz"
|
||
|
checksum=628049899386e91da245aee6cd446350fbca87e94863bc0d815066c08150487f
|
||
|
nocross=yes
|
||
|
|
||
|
build_options="native_build"
|
||
|
|
||
|
if [ -z "$build_option_native_build" ]; then
|
||
|
configure_args="--enable-sse --enable-sse2
|
||
|
--disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42
|
||
|
--disable-avx --disable-avx2 --disable-fma --disable-fma4"
|
||
|
fi
|
||
|
|
||
|
post_install() {
|
||
|
vlicense "Licence_CeCILL-B_V1-en.txt"
|
||
|
}
|
||
|
|
||
|
givaro-devel_package() {
|
||
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove "usr/lib/*.a"
|
||
|
vmove "usr/lib/*.so"
|
||
|
vmove usr/lib/pkgconfig
|
||
|
vmove usr/bin
|
||
|
}
|
||
|
}
|