This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 17th, 2011  |  syntax: None  |  size: 0.96 KB  |  views: 62  |  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. #Contributor: serp <serp256 at gmail dot com>
  2. srcname=lwt
  3. pkgname="ocaml-$srcname"
  4. pkgver=2.3.1
  5. pkgrel=1
  6. pkgdesc="A library for cooperative threads in OCaml"
  7. arch=('i686' 'x86_64')
  8. url="http://ocsigen.org/lwt/"
  9. license=('LGPL')
  10. depends=('ocaml>=3.12.0' 'ocaml-findlib' 'ocaml-react' 'ocaml-text' 'libev')
  11. source=(http://ocsigen.org/download/$srcname-$pkgver.tar.gz)
  12. md5sums=('fb7f3600a075c94a94eacf2464c09feb')
  13. conflicts=('lwt')
  14.  
  15. build() {
  16.         cd $srcdir/$srcname-$pkgver
  17.  
  18.         ./configure --enable-toplevel --enable-react --enable-text
  19.  
  20.         env DESTDIR="$pkgdir" \
  21.         OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \
  22.         make
  23. }
  24.  
  25.  
  26. package() {
  27.         mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"
  28.         mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs"
  29.         cd $srcdir/$srcname-$pkgver
  30.         env DESTDIR="$pkgdir" \
  31.         OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \
  32.         make install
  33.         install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  34. }
clone this paste RAW Paste Data