Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 15th, 2011  |  syntax: None  |  size: 1.08 KB  |  hits: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer : Nicolas Pouillard <nicolas(dot)pouillard(at)gmail(dot)com>
  2. # Contributor: Sylvester Johansson <scj(at)archlinux(dot)us>
  3. # Contributor: Sergei Leebdev <superbobry@gmail.com>
  4.  
  5. pkgname=ocaml-bin-prot
  6. pkgver=1.3.1
  7. pkgrel=1
  8. pkgdesc="binary protocol generator for OCaml"
  9. arch=('i686' 'x86_64')
  10. url="http://www.ocaml.info/home/ocaml_sources.html"
  11. license=('LGPL')
  12. depends=('ocaml' 'ocaml-type-conv')
  13. source=(http://www.janestreet.com/ocaml/bin_prot-$pkgver.tar.gz)
  14. options=(!strip !makeflags)
  15. md5sums=('6ed3471d26ede09250cbcef21f9fb966')
  16. install=ocaml-bin-prot.install
  17.  
  18. build () {
  19.   cd "$srcdir/bin_prot-$pkgver"
  20.   ocaml setup.ml -configure --prefix /usr --destdir ${pkgdir} --disable-tests
  21.   ocaml setup.ml -build || return 1
  22. }
  23.  
  24. package () {
  25.   cd "$srcdir/bin_prot-$pkgver"
  26.  
  27.   OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  28.  
  29.   mkdir -p "${OCAMLFIND_DESTDIR}"
  30.   OCAMLFIND_LDCONF=ignore OCAMLFIND_DESTDIR=$OCAMLFIND_DESTDIR ocaml setup.ml -install || return 1
  31.   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  32. }
  33.  
  34. # vim:set ts=2 sw=2 et: