31 lines
826 B
Bash
31 lines
826 B
Bash
# Template file for 'ocaml-zarith'
|
|
pkgname=ocaml-zarith
|
|
version=1.14
|
|
revision=1
|
|
build_style=configure
|
|
hostmakedepends="perl"
|
|
makedepends="gmp-devel ocaml"
|
|
depends="gmp-devel"
|
|
short_desc="OCaml operations over arbitrary-precision integers"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="LGPL-2.0-only,OCaml-LGPL-linking-exception"
|
|
homepage="https://github.com/ocaml/zarith"
|
|
distfiles="https://github.com/ocaml/zarith/archive/release-${version}.tar.gz"
|
|
checksum=5db9dcbd939153942a08581fabd846d0f3f2b8c67fe68b855127e0472d4d1859
|
|
nocross=yes
|
|
disable_parallel_build=yes
|
|
|
|
post_configure() {
|
|
sed -i 's/INSTALLDIR=/&$(DESTDIR)/' Makefile
|
|
}
|
|
pre_install() {
|
|
mkdir -p ${DESTDIR}/usr/lib/ocaml/stublibs
|
|
}
|
|
post_install() {
|
|
vcopy META usr/lib/ocaml/zarith
|
|
}
|
|
do_check() {
|
|
command -v ocamlc.opt >/dev/null || return 0
|
|
make tests
|
|
}
|