Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 14th, 2011  |  syntax: None  |  size: 1.07 KB  |  views: 54  |  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: Serge Ziryukin <ftrvxmtrx@gmail.com>
  2. # Contributor: Sergei Lebedev <superbobry@gmail.com>
  3. pkgname=ocaml-kaputt
  4. pkgver=1.1
  5. pkgrel=2
  6. pkgdesc="Unit testing tool for the Objective Caml language"
  7. arch=('i686' 'x86_64')
  8. url=("http://kaputt.x9c.fr")
  9. license=('GPLv3')
  10. depends=('ocaml')
  11. makedepends=('ocaml-findlib')
  12. _pkgname=kaputt
  13. source=(http://kaputt.x9c.fr/distrib/${_pkgname}-${pkgver}.tar.gz
  14.         makefile.patch)
  15. md5sums=('d96e6b953f118952b517a7ef98dba055'
  16.          'efe1f0c31a4f67f2ef1c412e2a39404b')
  17.  
  18. build () {
  19.   cd "${srcdir}/${_pkgname}-${pkgver}"
  20.  
  21.   chmod +x ./configure
  22.   ./configure -ocamlfind /usr/bin/ocamlfind || return 1
  23.   make all || return 1
  24. }
  25.  
  26. package () {
  27.   cd "${srcdir}/${_pkgname}-${pkgver}"
  28.   OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  29.  
  30.   # BUG: Makefile doesn't install `kaputt.cmi`.
  31.   patch -Np0 < $startdir/makefile.patch
  32.  
  33.   mkdir -p $OCAMLFIND_DESTDIR
  34.   OCAMLFIND_DESTDIR=$OCAMLFIND_DESTDIR make install || return 1
  35.   install -D "doc/${_pkgname}.pdf" "${pkgdir}/usr/share/doc/${_pkgname}/${_pkgname}.pdf"
  36. }
clone this paste RAW Paste Data