diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/ocaml-lwt/PKGBUILD | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/pcr/ocaml-lwt/PKGBUILD b/pcr/ocaml-lwt/PKGBUILD index 4383f815b..c2dfe811d 100644 --- a/pcr/ocaml-lwt/PKGBUILD +++ b/pcr/ocaml-lwt/PKGBUILD @@ -1,22 +1,27 @@ -# Maintainer (Arch): Jakob Gahde <j5lx@fmail.co.uk> -# Contributor (Arch): Serge Zirukin <ftrvxmtrx@gmail.com> -# Contributor (Arch): Sergei Lebedev <superbobry@gmail.com -# Contributor (Arch): serp <serp256 at gmail dot com> +# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk> +# Contributor (AUR): Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (AUR): Sergei Lebedev <superbobry@gmail.com +# Contributor (AUR): serp <serp256 at gmail dot com> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> +# parabola changes and rationale: +# - renamed tarball to avoid collisions +# - updated package to 2.7.1 +# - added missing makedepends: cppo + _pkgname=lwt pkgname=ocaml-${_pkgname} -pkgver=2.5.1 +pkgver=2.7.1 pkgrel=1 pkgdesc="A library for cooperative threads in OCaml" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'armv7h') url="http://ocsigen.org/${_pkgname}/" -license=('LGPL') -depends=('ocaml' 'camlp4' 'ocaml-ppx_tools' 'ocaml-react' 'ocaml-ssl' 'libev' 'glib2') -makedepends=('ocaml-findlib') -source=(https://github.com/ocsigen/${_pkgname}/archive/$pkgver.tar.gz) -sha256sums=('351ea57e30cdeeebb02ae3b12906ed391f947fd35d57148905828ee121ec29ec') -options=(!strip !makeflags staticlibs) +license=('custom:LGPL with OpenSSL linking exception') +depends=('ocaml' 'camlp4' 'ocaml-ppx_tools' 'ocaml-react' 'ocaml-result' 'ocaml-ssl' 'libev' 'glib2') +makedepends=('ocamlbuild' 'ocaml-findlib' 'cppo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/${_pkgname}/archive/${pkgver}.tar.gz") +sha256sums=('43c0541c185f9db4ef7e44703bd75b832dc7a69ccc9905dd413d08563d44d639') +options=('!strip' '!makeflags' 'staticlibs') build() { cd "${srcdir}/${_pkgname}-${pkgver}" @@ -26,15 +31,13 @@ build() { # --enable-glib glib2 # --enable-react ocaml-react # --enable-ssl ocaml-ssl - - ./configure --enable-react \ - --enable-glib \ - --enable-ssl \ - --enable-camlp4 \ - --enable-ppx \ - --disable-debug \ - --prefix /usr \ - --destdir $pkgdir + ocaml setup.ml -configure --enable-react \ + --enable-glib \ + --enable-ssl \ + --enable-camlp4 \ + --enable-ppx \ + --disable-debug \ + --prefix "${pkgdir}/usr" make } @@ -42,9 +45,8 @@ build() { package() { cd "${srcdir}/${_pkgname}-${pkgver}" - export OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)" - mkdir -p "$OCAMLFIND_DESTDIR/stublibs" - + export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" + install -dm755 "${OCAMLFIND_DESTDIR}/stublibs" make install - install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 "doc/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" } |