From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/ocaml-findlib/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 community/ocaml-findlib/PKGBUILD (limited to 'community/ocaml-findlib/PKGBUILD') diff --git a/community/ocaml-findlib/PKGBUILD b/community/ocaml-findlib/PKGBUILD new file mode 100644 index 000000000..a78465650 --- /dev/null +++ b/community/ocaml-findlib/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Lukas Fleischer +# Contributor: Thomas S Hatch +# Contributor: Sebastian Wiesner +# Contributor: Benjamin Andresen +# Contributor: scj + +pkgname=ocaml-findlib +pkgver=1.3.3 +pkgrel=2 +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") +options=('!strip' 'zipman') # otherwise the bytecode gets broken +md5sums=('a4c22ad5e0d38367a73cf58a25fcbebd') + +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 compatibility 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" +} -- cgit v1.2.3-54-g00ecf