summaryrefslogtreecommitdiff
path: root/pcr/ocaml-camomile/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-12 08:49:34 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-12 08:49:34 +0100
commit7004abcaccdf019710467fe6056588af17bb3070 (patch)
tree4b79e66e66df72093eda261d8516830e811e487c /pcr/ocaml-camomile/PKGBUILD
parent33b7fb9d844a3d8c7bec15d81e038104d9d7ad49 (diff)
downloadabslibre-7004abcaccdf019710467fe6056588af17bb3070.tar.gz
abslibre-7004abcaccdf019710467fe6056588af17bb3070.tar.bz2
abslibre-7004abcaccdf019710467fe6056588af17bb3070.zip
pcr/ocaml-camomile: updated to 1.0.1
Diffstat (limited to 'pcr/ocaml-camomile/PKGBUILD')
-rw-r--r--pcr/ocaml-camomile/PKGBUILD54
1 files changed, 31 insertions, 23 deletions
diff --git a/pcr/ocaml-camomile/PKGBUILD b/pcr/ocaml-camomile/PKGBUILD
index 5537b4af0..ee776a930 100644
--- a/pcr/ocaml-camomile/PKGBUILD
+++ b/pcr/ocaml-camomile/PKGBUILD
@@ -1,38 +1,46 @@
-# Maintainer : Aurélien Desbrières <aurelien@hackers.camp>
-# Contributor: Marek Kubica <marek@xivilization.net>
-# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
+# Maintainer (AUR): robertfoster
+# Contributor (AUR): Marek Kubica <marek@xivilization.net>
+# Contributor (AUR): Serge Zirukin <ftrvxmtrx@gmail.com>
+# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>
+
pkgname=ocaml-camomile
-pkgver=0.8.5
-pkgrel=5
+pkgver=1.0.1
+pkgrel=3
pkgdesc="Comprehensive Unicode library for OCaml"
arch=('i686' 'x86_64')
+arch+=('armv7h')
url="https://github.com/yoriyuki/Camomile"
license=('LGPL')
-makedepends=('ocaml' 'camlp4' 'ocaml-findlib>=1.2.3')
-source=(https://github.com/yoriyuki/${pkgname/ocaml-}/releases/download/rel-$pkgver/${pkgname/ocaml-/}-$pkgver.tar.bz2
- 0002-Install-missing-camomileLibrary.a.patch)
+makedepends=('dune' 'ocaml' 'ocaml-findlib' 'opam')
+source=(https://github.com/yoriyuki/Camomile/archive/$pkgver.tar.gz)
options=(!strip !makeflags staticlibs)
-prepare() {
- cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}"
- # Patch from Debian, Slackware to add camomileLibrary.a which is required
- # for some code to build
- patch -Np1 -i ../0002-Install-missing-camomileLibrary.a.patch
-}
-
build() {
- cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}"
+ cd Camomile-${pkgver}
+ jbuilder build @install
+}
- ./configure --prefix=/usr
- sed -i -e 's|ocamlfind install|ocamlfind install -destdir '${pkgdir}$(ocamlfind printconf destdir)'|' Makefile
- make
+check() {
+ cd Camomile-${pkgver}
+ jbuilder runtest
}
package() {
- cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}"
+ cd Camomile-${pkgver}
+
+ mkdir -p "$pkgdir"/usr/lib/ocaml
+ jbuilder install \
+ --destdir="$pkgdir" \
+ --libdir="/usr/lib/ocaml"
+
+ cd "$pkgdir"
+
+ # There's just a readme.
+ rm -Rf usr/doc
- mkdir -p "${pkgdir}$(ocamlfind printconf destdir)"
- make DATADIR="${pkgdir}/usr/share" install
- install -Dm 644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ # Remove annotation files and sources.
+ rm -Rf usr/lib/ocaml/$_pkgname/*.cmt*
+ rm -Rf usr/lib/ocaml/$_pkgname/*.ml
}
+md5sums=('9557fd86f13eba45474fc1336f225f32')