summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 257de2bafecf23f74c9314b4902efd57a3424a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
# Contributor: wenLiangcan <boxeed at gmail dot com>
# Contributor: Taylor Venable <taylor@metasyntax.net>

_pkgname='utop'
pkgname="ocaml-${_pkgname}"
pkgver=1.18.1
pkgrel=1
pkgdesc='A toplevel for OCaml that supports completion, colors, and parenthesis matching'
arch=('i686' 'x86_64')
url='https://github.com/diml/utop'
license=('BSD')
depends=('ocaml>=4.01.0' 'ocaml-findlib>=1.4.0' 'cppo>=1.0.1' 'ocaml-react' 'ocaml-lwt>=2.4.0' 'ocaml-camomile>=0.8' 'ocaml-zed>=1.2' 'ocaml-lambda-term>=1.2' 'camlp4')
source=("https://github.com/diml/utop/archive/${pkgver}.tar.gz")
options=('!strip')
md5sums=('d943512656806c06ecf327c37c9aa831')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  ./configure --prefix /usr --destdir "${pkgdir}" --enable-camlp4

  make
}


package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  mkdir -p "${OCAMLFIND_DESTDIR}"
  DESTDIR="${pkgdir}" \
    OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" \
    make install
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}