public
anonymous / gist:1138293
Created

PKGBUILD for ocaml-batteries 1.4.0

  • Download Gist
gistfile1.txt
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 : 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:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.