# Contributor: Michael Zuo # Contributor: Sora Morimoto # Contributor: Anil Madhavapeddy # Contributor: omni # Maintainer: Kate pkgname=opam pkgver=2.1.5 pkgrel=0 pkgdesc="OCaml Package Manager" url="https://opam.ocaml.org" arch="all !riscv64" # ocaml license="LGPL-2.1-only WITH OCaml-LGPL-linking-exception" depends="curl patch unzip coreutils bubblewrap" options="net !check" # The tests use bubblewrap which cannot be run inside docker makedepends="tar ocaml-compiler-libs" checkdepends="rsync bash diffutils" source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/opam/archive/$pkgver.tar.gz" subpackages="$pkgname-doc" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --with-mccs make -j1 lib-ext make -j1 all } check() { make tests } package() { make DESTDIR="$pkgdir" install install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } sha512sums=" 4395defe7df1d03ca889718b8eafd8161ff009710475f62673f19f012e0bde8ad2a919bd9d02d7f96b4c5a9bbf38e0ba9a256531c24de15cafabd4ef11f7c8e8 opam-2.1.5.tar.gz "