-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
34 lines (30 loc) · 899 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Template file for 'gf2x'
pkgname=gf2x
version=1.3.0
revision=1
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
}
}