Created
August 10, 2011 21:16
-
-
Save anonymous/1138293 to your computer and use it in GitHub Desktop.
PKGBUILD for ocaml-batteries 1.4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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