diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ocaml-findlib/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ocaml-findlib/PKGBUILD')
-rw-r--r-- | community/ocaml-findlib/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/ocaml-findlib/PKGBUILD b/community/ocaml-findlib/PKGBUILD new file mode 100644 index 000000000..8cca5d565 --- /dev/null +++ b/community/ocaml-findlib/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Thomas S Hatch <thatch45 at gmail dot com> +# Contributor: Sebastian Wiesner <lunaryorn googlemail com> +# Contributor: Benjamin Andresen <benny(at)klapmuetz(dot)org> +# scj <scj archlinux us> +pkgname=ocaml-findlib +pkgver=1.2.6 +pkgrel=4 +license=('MIT') +arch=('i686' 'x86_64') +pkgdesc="Objective Caml (OCaml) package manager" +url="http://projects.camlcity.org/projects/findlib.html" +depends=('ocaml') +source=("http://download.camlcity.org/download/findlib-${pkgver}.tar.gz") +md5sums=('4924c8c3ef1208eb0fa9096c8b8bb72f') +options=('!strip' 'zipman') # otherwise the bytecode gets broken + +build() { + cd ${srcdir}/findlib-${pkgver} + ./configure\ + -config /etc/findlib.conf \ + -sitelib /usr/lib/ocaml \ + -mandir /usr/share/man + make all opt +} + +package () { + cd ${srcdir}/findlib-${pkgver} + make prefix=${pkgdir} install + + # Add the old site-lib to the path to maintain compatability with old style + # packages. + sed -i 's/path=\"\/usr\/lib\/ocaml\"/path="\/usr\/lib\/ocaml:\/usr\/lib\/ocaml\/site-lib"/' ${pkgdir}/etc/findlib.conf + + install -m755 src/findlib/ocamlfind_opt "${pkgdir}/usr/bin/" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |