updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / ocaml-stomp-git / PKGBUILD
blob679a0aa62035b317b4cbc54bd0eb14abf04dfe3e
1 #Contributor: p2k <Patrick.Schneider@uni-ulm.de>
2 pkgname=ocaml-stomp-git
3 pkgver=1.0
4 pkgrel=1
5 pkgdesc="Text Orientated Messaging Protocol client implementation in OCaml."
6 arch=('i686' 'x86_64')
7 url="http://github.com/mfp/ocaml-stomp"
8 license=('MIT')
9 depends=('ocaml' 'ocaml-findlib' 'lwt' 'ocaml-extlib' 'ocaml-cryptokit')
10 makedepends=('omake' 'git')
11 source=()
13 build() {
14   cd $srcdir
16   if [ -d ocaml-stomp ]; then
17     cd ocaml-stomp
18     git pull origin
19   else
20     git clone git://github.com/mfp/ocaml-stomp.git
21     cd ocaml-stomp
22   fi
24   omake || return 1
25   omake doc || return 1
27   install -Dm 644 stomp.cma $pkgdir/usr/lib/ocaml/site-lib/stomp/stomp.cma
28   install -Dm 644 stomp.cma $pkgdir/usr/lib/ocaml/site-lib/stomp/stomp.cmxa
29   cat >$pkgdir/usr/lib/ocaml/site-lib/stomp/META <<EOF
30 version = "$pkgver"
31 description = "$pkgdesc"
32 requires = "lwt,extlib,cryptokit"
33 archive(byte) = "stomp.cma"
34 archive(native) = "stomp.cmxa"
35 EOF
37   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
38   mkdir -p $pkgdir/usr/share/doc/ocaml-stomp
39   cp -R doc/* $pkgdir/usr/share/doc/ocaml-stomp