summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-21 04:22:29 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-21 04:22:29 -0500
commitd52c3f5e52993e7b0205c31c68fcc74fd72ec851 (patch)
treecd92da08c0fc29627612f245685a5b6522d59c0c /pcr
parent4ae640be3abac08fcfcf74cc5222bad8ead09dc0 (diff)
downloadabslibre-d52c3f5e52993e7b0205c31c68fcc74fd72ec851.tar.gz
abslibre-d52c3f5e52993e7b0205c31c68fcc74fd72ec851.tar.bz2
abslibre-d52c3f5e52993e7b0205c31c68fcc74fd72ec851.zip
ocaml-lwt-2.5.0-2: updating version
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ocaml-lwt/PKGBUILD43
1 files changed, 23 insertions, 20 deletions
diff --git a/pcr/ocaml-lwt/PKGBUILD b/pcr/ocaml-lwt/PKGBUILD
index 8aa9eaaa6..368217253 100644
--- a/pcr/ocaml-lwt/PKGBUILD
+++ b/pcr/ocaml-lwt/PKGBUILD
@@ -1,24 +1,25 @@
-# Contributor (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 (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-
-pkgname="ocaml-lwt"
-pkgver=2.4.8
-pkgrel=1
+# 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: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_pkgname=lwt
+pkgname=ocaml-${_pkgname}
+pkgver=2.5.0
+pkgrel=2
pkgdesc="A library for cooperative threads in OCaml"
arch=('i686' 'x86_64')
-url="http://ocsigen.org/lwt/"
-license=('LGPL2.1')
-depends=('ocaml' 'ocaml-react' 'ocaml-ssl' 'libev' 'glib2')
+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/lwt/archive/$pkgver.tar.gz)
-sha256sums=('cada92a1c7ce9c678adc67dfa0a8c51f582358e99bbe839ece2decd6866cfa38')
+source=(https://github.com/ocsigen/${_pkgname}/archive/$pkgver.tar.gz)
+sha256sums=('37ae28a56bc5e112947ff84562b37fbd2263d54ecbb0b1e2076b2b775f546130')
options=(!strip !makeflags staticlibs)
build() {
- cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
echo '<src/top/*.*>: use_compiler_libs' >> _tags
# What requires what?
@@ -29,19 +30,21 @@ build() {
./configure --enable-react \
--enable-glib \
--enable-ssl \
+ --enable-camlp4 \
+ --enable-ppx \
--disable-debug \
--prefix /usr \
--destdir $pkgdir
- make || return 1
+ make
}
package() {
- cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
-
- export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ export OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)"
mkdir -p "$OCAMLFIND_DESTDIR/stublibs"
+
make install
- install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}