Date: Saturday, March 26, 2016 @ 20:50:04 Author: arodseth Revision: 168504
upgpkg: ocaml-findlib 1.6.2-1 Modified: ocaml-findlib/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-03-26 19:14:46 UTC (rev 168503) +++ PKGBUILD 2016-03-26 19:50:04 UTC (rev 168504) @@ -1,23 +1,26 @@ -# Maintainer: Lukas Fleischer <[email protected]> -# Contributor: Thomas S Hatch <thatch45 at gmail dot com> -# Contributor: Sebastian Wiesner <lunaryorn googlemail com> -# Contributor: Benjamin Andresen <benny(at)klapmuetz(dot)org> -# Contributor: scj <scj archlinux us> +# $Id$ +# Maintainer: Alexander F Rødseth <[email protected]> +# Contributor: Lukas Fleischer <[email protected]> +# Contributor: Thomas S Hatch <[email protected]> +# Contributor: Sebastian Wiesner <[email protected]> +# Contributor: Benjamin Andresen <[email protected]> +# Contributor: scj <[email protected]> pkgname=ocaml-findlib -pkgver=1.5.5 -pkgrel=3 +pkgver=1.6.2 +pkgrel=1 +pkgdesc='OCaml package manager' +arch=('x86_64' 'i686') +url='http://projects.camlcity.org/projects/findlib.html' license=('MIT') -arch=('i686' 'x86_64') -pkgdesc='Objective Caml (OCaml) package manager' -url='http://projects.camlcity.org/projects/findlib.html' depends=('ocaml') +makedepends=('setconf') source=("http://download.camlcity.org/download/findlib-$pkgver.tar.gz") -md5sums=('703eae112f9e912507c3a2f8d8c48498') -options=('staticlibs' '!strip' 'zipman' '!makeflags') # otherwise the bytecode gets broken +sha256sums=('3917904342ffbb66089f9fec1adc023b8854178bc21f303e4cbf96b8b164c946') +options=('staticlibs' '!strip' 'zipman' '!makeflags') build() { - cd "$srcdir/findlib-$pkgver" + cd "findlib-$pkgver" ./configure -config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man make all opt @@ -24,14 +27,16 @@ } package () { - cd "$srcdir/findlib-$pkgver" + cd "findlib-$pkgver" - make prefix="$pkgdir" install + 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" + # 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:
