# Maintainer: wenLiangcan # Contributor: Taylor Venable srcname='lambda-term' pkgname="ocaml-${srcname}" pkgver='1.9' pkgrel=1 pkgdesc='A cross-platform library for manipulating the terminal' arch=('i686' 'x86_64') url='https://github.com/diml/lambda-term' license=('BSD') depends=('ocaml' 'ocaml-lwt' 'ocaml-react' 'ocaml-zed') makedepends=('ocaml-findlib') source=("https://github.com/diml/lambda-term/archive/${pkgver}.tar.gz") options=('!strip') md5sums=('17a9f8b56f9a10a7ed4cfa48ae6c3e39') build() { cd "$srcdir/${srcname}-${pkgver}" ./configure --prefix /usr --destdir "$pkgdir" env DESTDIR="$pkgdir" \ OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ make } package() { install -dm755 "$pkgdir/$(ocamlfind printconf destdir)" install -dm755 "$pkgdir/$(ocamlfind printconf destdir)/stublibs" cd "$srcdir/${srcname}-${pkgver}" env DESTDIR="$pkgdir" \ OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ make install install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE }