# $Id$ # Maintainer: Alexander F Rødseth # Contributor: Lukas Fleischer # Contributor: Thomas S Hatch # Contributor: Sebastian Wiesner # Contributor: Benjamin Andresen # Contributor: scj # Contributor: Alif pkgname=ocaml-findlib pkgver=1.7.1 pkgrel=1 pkgdesc='OCaml package manager' arch=('x86_64' 'i686') url='http://projects.camlcity.org/projects/findlib.html' license=('MIT') depends=('ocaml') makedepends=('setconf') source=("http://download.camlcity.org/download/findlib-$pkgver.tar.gz") sha256sums=('5d4b9a79e9abf8be0b509f6b8cf5696221cbe14fa2fbb2bb352342755fd15eef') options=('staticlibs' '!strip' 'zipman' '!makeflags') build() { cd "findlib-$pkgver" ./configure \ -sitelib /usr/lib/ocaml \ -config /etc/findlib.conf \ -mandir /usr/share/man make all opt } package () { cd "findlib-$pkgver" make prefix="$pkgdir" install # Add a directory to the path for compatibility with old-style packages #setconf "$pkgdir/etc/findlib.conf" path='"/usr/lib/ocaml:/usr/lib/ocaml-site-lib"' install -m755 src/findlib/ocamlfind_opt "$pkgdir/usr/bin/" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: