void-packages/srcpkgs/gf2x/template
2021-08-18 15:48:46 -03:00

35 lines
927 B
Bash

# Template file for 'gf2x'
pkgname=gf2x
version=1.3.0
revision=1
wrksrc=gf2x-gf2x-${version}
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="C/C++ library for fast arithmetic in GF(2)[x]"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-3.0-or-later"
homepage="https://gitlab.inria.fr/gf2x/gf2x"
distfiles="https://gitlab.inria.fr/gf2x/gf2x/-/archive/gf2x-${version}/gf2x-gf2x-${version}.tar.gz"
checksum=11bcf98b620c60c2ee3b4460b02b7be741f14cfdc26b542f22c92950926575e0
build_options="native_build"
if [ -z "$build_option_native_build" ]; then
# this disables sse3, ssse3, sse41, pclmul
configure_args="--disable-sse3"
fi
pre_configure() {
autoreconf -fi
}
gf2x-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}