# Maintainer: Dringsim pkgname=ocaml-uuidm _pkgname=${pkgname#ocaml-} pkgver=0.9.8 pkgrel=1 pkgdesc='Universally unique identifiers (UUIDs) for OCaml' arch=('x86_64') url=https://erratique.ch/software/uuidm license=('ISC') options=('!strip') depends=('ocaml>=4.08' 'ocaml-cmdliner>=1.1.0') makedepends=('ocaml-topkg' 'ocaml-findlib' 'ocamlbuild' 'opam') source=("${_pkgname}-$pkgver.tar.gz::https://github.com/dbuenzli/${_pkgname}/archive/v$pkgver.tar.gz") sha256sums=('D9D24AF1BFCD3A9B1189DF10BF937688EF00279A72F024A410AA44C32A3D95CC') build() { cd ${_pkgname}-$pkgver ocaml pkg/pkg.ml build --with-cmdliner true } package() { cd ${_pkgname}-$pkgver opam-installer --prefix="${pkgdir}/usr" \ --libdir="${pkgdir}$(ocamlc -where)" \ --docdir="${pkgdir}/usr/share/doc" \ --stubsdir="${pkgdir}$(ocamlc -where)/stublibs" \ ./uuidm.install install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE.md }