Skip to content

anonymous /gist:1138293
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PKGBUILD for ocaml-batteries 1.4.0
# Maintainer : Nicolas Pouillard <nicolas(dot)pouillard(at)gmail(dot)com>
# Contributor: Sylvester Johansson <scj(at)archlinux(dot)us>
# Contributor: Sergey Plaksin <serp256(at)gmail(dot)com>
pkgname=ocaml-batteries
pkgver=1.4.0
pkgrel=1
pkgdesc="Batteries Included for OCaml"
arch=('i686' 'x86_64')
url="https://forge.ocamlcore.org/projects/batteries/"
license=('LGPL')
depends=('ocaml' 'ocaml-findlib' 'ocaml-camomile' 'ocaml-ounit')
install=ocaml-batteries.install
source=(https://forge.ocamlcore.org/frs/download.php/643/batteries-${pkgver}.tar.gz)
options=(!strip !makeflags)
md5sums=('0c16c5a022876b33b615418595dfc671')
build(){
cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
OCAMLBUILD="ocamlbuild -no-links" make all || return 1
make doc || return 1
}
package(){
cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
mkdir -p $pkgdir$(ocamlfind printconf destdir)/batteries || return 1
export DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
export OCAMLFIND_DESTDIR="$DESTDIR"
OCAMLBUILD="ocamlbuild -no-links" make install || return 1
DOCROOT="$pkgdir/usr/share/doc/$pkgname/" make install-doc || return 1
install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1
install -Dm 644 ocamlinit $pkgdir/usr/share/doc/$pkgname/ocamlinit || return 1
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.