updated on Tue Jan 17 08:05:08 UTC 2012
[aur-mirror.git] / ocaml-getopt / PKGBUILD
blobaa5986122778f607e33fb29cc6ba407fc01bcb66
1 # Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
2 # Contributor: Massimiliano Brocchini <brocchini@netseven.it>
4 pkgname=ocaml-getopt
5 pkgver=20040811
6 pkgrel=4
7 pkgdesc="Command line parsing module similar to GNU GetOpt for Objective Caml (OCaml)"
8 arch=('i686' 'x86_64')
9 url="http://alain.frisch.fr/soft.html#Getopt"
10 license=('MIT')
11 depends=('ocaml')
12 makedepends=('ocaml-findlib')
13 source=(http://alain.frisch.fr/info/getopt-20040811.tar.gz)
14 md5sums=('3e9f5de83475c05141c6e281f49994d6')
16 DESTDIR="${pkgdir}$(ocamlfind printconf destdir)/getopt"
17 DOCDIR="${pkgdir}/usr/share/doc/${pkgname}"
19 build() {
20   cd ${srcdir}/getopt
21   make allopt
24 package () {
25   cd ${srcdir}/getopt
26   mkdir -p $DESTDIR
27   mkdir -p $DOCDIR
28   install -m 0644 getopt.{a,cmxa,cma,cmi,mli} META $DESTDIR
29   "cp" -r sample.ml doc/* $DOCDIR