void-packages/srcpkgs/opam/template

25 lines
729 B
Bash

# Template file for 'opam'
pkgname=opam
version=2.1.5
revision=2
build_style=gnu-configure
configure_args="--docdir=/usr/share/doc/${pkgname}"
make_build_args="lib-ext all"
make_check_target="tests"
makedepends="curl ncurses-devel ocaml ocaml-findlib tar"
depends="bubblewrap curl patch unzip"
checkdepends="${depends} git rsync"
short_desc="OCaml package manager"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-3.0-only"
homepage="https://opam.ocaml.org/"
distfiles="https://github.com/ocaml/opam/archive/${version}.tar.gz"
checksum=2eb2a21f4d64d1eb2eece2e8d28678be823d3f6846c28fc0fbd5645738fe0f81
nocross=yes
disable_parallel_build=yes
make_check=ci-skip # uses bwrap
post_install() {
rm -rf ${DESTDIR}/usr/doc
}