# Maintainer: Antonin Décimo # Contributor: Vincent Bernardoff # Contributor: Raphaël Proust pkgname=opam-git pkgver=2.1.0.beta2.r165.g1138d481 pkgrel=3 pkgdesc='OCaml package manager' arch=('i686' 'x86_64' 'armv6h' 'armv7h') url='https://opam.ocaml.org/' license=(GPL) depends=(bubblewrap ocaml-compiler-libs unzip) makedepends=('git' 'curl') optdepends=( 'darcs: For downloading packages with darcs' 'git: For downloading packages with git' 'mercurial: For downloading packages with mercurial' 'rsync: For downloading packages with rsync' ) provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("${pkgname%-git}"::'git+git://github.com/ocaml/opam.git') sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$srcdir/${pkgname%-git}" # A clean environment seems mandatory to avoid conflicts with # existing installation of Opam packages. This may cause surprises # if you have a peculiar customization of your OCaml/Opam setup. env -i PATH=/usr/bin LANG=$LANG ./configure --prefix=/usr env -i PATH=/usr/bin LANG=$LANG make lib-ext all } package() { cd "$srcdir/${pkgname%-git}" make DESTDIR="$pkgdir" install }