# Contributor: Michael Zuo # Maintainer: Anil Madhavapeddy pkgname=opam pkgver=2.0.1 pkgrel=0 pkgdesc="OCaml Package Manager" url="https://opam.ocaml.org" arch="all !x86 !armhf !armv7 !s390x" # ocaml not avail on excluded platforms license="LGPL-2.1" depends="ocaml curl xz tar unzip rsync patch bubblewrap bash" makedepends="ocaml-compiler-libs" source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz" builddir="$srcdir/$pkgname-full-$pkgver" subpackages="$pkgname-doc" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var make -j1 lib-ext make -j1 all } package() { cd "$builddir" make DESTDIR="$pkgdir" install } check() { cd "$builddir" make tests } sha512sums="add6cd77067cddadd4be5d79699713211f5f2796c1e1931048eb5fc4f0127eca56e1f81d43335327ae04e2144186d9ce759e844d2a125ef27f22c26cd8153e3c opam-full-2.0.1.tar.gz"