Source

aur / ocaml / PKGBUILD

Full commit
# Maintainer: Taylor Venable <taylor@metasyntax.net>

pkgname='ocaml'
pkgver='4.00.0'
pkgrel=1
pkgdesc="A functional language with OO extensions"
arch=('i686' 'x86_64')
license=('custom: QPL-1.0'      # compiler and toolchain
         'LGPL2')               # standard library
url='http://caml.inria.fr/'
depends=('gdbm')
makedepends=('tk' 'ncurses' 'libx11')
optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
source=("http://caml.inria.fr/distrib/ocaml-4.00/${pkgname}-${pkgver}.tar.gz")
md5sums=('fa11560a45793bd9fa45c1295a6f4a91')
options=('!makeflags' '!strip')

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

  ./configure -prefix /usr

  make world.opt
}

package_ocaml() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make PREFIX="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" install

  # install license
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
}