Advertisement
Guest User

Untitled

a guest
Sep 12th, 2011
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
  2. # Contributor: Kostas Andreadis <kmandreadis@gmail.com>
  3. # Contributor: Sergei Lebedev <superbobry@gmail.com>
  4. pkgname=ocaml-calendar
  5. pkgver=2.03.1
  6. pkgrel=1
  7. pkgdesc="OCaml library managing dates and times"
  8. arch=('i686' 'x86_64')
  9. url="http://forge.ocamlcore.org/forum/forum.php?forum_id=293"
  10. license=('LGPL')
  11. depends=('ocaml')
  12. makedepends=('ocaml-findlib')
  13. source=(http://forge.ocamlcore.org/frs/download.php/605/calendar-$pkgver.tar.gz)
  14. md5sums=('8f14a2c7d84e4caf03099b049716d728')
  15. options=('!strip')
  16.  
  17. OCAMLFIND_DESTDIR=$pkgdir$(ocamlfind printconf destdir)
  18.  
  19. build() {
  20. cd "$srcdir/calendar-$pkgver"
  21. ./configure --prefix=/usr
  22. make
  23. }
  24.  
  25. package() {
  26. cd "$srcdir/calendar-$pkgver"
  27. mkdir -p $OCAMLFIND_DESTDIR
  28. make OCAMLFIND_DESTDIR=$OCAMLFIND_DESTDIR install
  29. install -Dm 644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
  30.  
  31. # Fix the broken META file
  32. sed -i 's/calendarLib.cmo\ //' $OCAMLFIND_DESTDIR/calendar/META
  33. sed -i 's/calendarLib.cmx\ //' $OCAMLFIND_DESTDIR/calendar/META
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement