void-packages/srcpkgs/coq/template
2022-01-19 14:34:23 +01:00

33 lines
929 B
Bash

# Template file for 'coq'
pkgname=coq
version=8.15.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=73466e61f229b23b4daffdd964be72bd7a110963b9d84bd4a86bb05c5dc19ef3
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
}