void-packages/srcpkgs/coq/template
2021-10-20 17:05:57 +02:00

33 lines
929 B
Bash

# Template file for 'coq'
pkgname=coq
version=8.14.0
revision=1
hostmakedepends="camlp5 dune ocaml ocaml-findlib ocaml-num ocaml-zarith"
short_desc="Proof assistant written in OCaml"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1-only"
homepage="https://coq.inria.fr"
distfiles="https://github.com/coq/coq/archive/V${version}.tar.gz"
checksum=b1501d686c21836302191ae30f610cca57fb309214c126518ca009363ad2cd3c
nopie=yes
nocross=yes
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) broken="R_PPC_REL24 relocation out of range";;
esac
do_configure() {
./configure -prefix /usr -coqide no
}
do_build() {
# can't find dllzarith.so else; also disable fatal deprecations
export OCAMLPARAM='I=/usr/lib/ocaml/zarith,_,w=-D'
dune build --display=short -p coq-core,coq-stdlib
}
do_install() {
dune install coq-core coq-stdlib --prefix=/usr --destdir="$DESTDIR" \
--mandir=/usr/share/man --docdir=/usr/share/doc
}