# Maintainer: Daniel Peukert # Contributor: Jakob Gahde # Contributor: wenLiangcan # Contributor: Taylor Venable _projectname='lambda-term' pkgname="ocaml-$_projectname" pkgver='3.1.0' pkgrel='2' pkgdesc='Terminal manipulation library for OCaml' arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/ocaml-community/$_projectname" license=('BSD') depends=('ocaml>=4.02.3' 'ocaml-camomile>=1.0.1' 'ocaml-lwt>=4.0.0' 'ocaml-lwt_log' 'ocaml-mew_vi>=0.5.0' 'ocaml-react' 'ocaml-zed>=3.0.0') makedepends=('dune>=1.1.0') options=('!strip') install="$pkgname.install" source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('f99c0c344df569a09599a836692d8475f80ff83a2099859e35fb5b2b9890c290') _sourcedirectory="$_projectname-$pkgver" build() { cd "$srcdir/$_sourcedirectory/" dune build --release --verbose } package() { cd "$srcdir/$_sourcedirectory/" DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml' --release --verbose install -dm755 "$pkgdir/usr/share/doc/$pkgname" mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/" rm -r "$pkgdir/usr/doc/" mv "$pkgdir/usr/man/" "$pkgdir/usr/share/man/" install -dm755 "$pkgdir/usr/share/licenses/$pkgname" ln -sf "/usr/share/doc/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }