void-packages/srcpkgs/coq/template
2021-11-26 15:39:42 +01:00

33 lines
929 B
Bash

# Template file for 'coq'
pkgname=coq
version=8.14.1
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=3cbfc1e1a72b16d4744f5b64ede59586071e31d9c11c811a0372060727bfd9c3
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
}