# Maintainer : Aurelien Desbriers <aurelien@hackers.camp>
# Contributor: Vincent B. <vb@luminar.eu.org>

pkgname=opam
pkgver=1.2.1
pkgrel=1
pkgdesc="OCaml Package Manager"
arch=('i686' 'x86_64')
url="http://opam.ocaml.org"
license=('GPL')
depends=('ocaml' 'aspcud')
source=( https://github.com/ocaml/opam/releases/download/${pkgver}/opam-full-${pkgver}.tar.gz)
md5sums=('04e8823a099ab631943952e4c2ab18fc')

build() {
  cd ${srcdir}/opam-full-${pkgver}
  ./configure --prefix=/usr
  make -j1 lib-ext
  make -j1
}

package() {
  cd ${srcdir}/opam-full-${pkgver}
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: