diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 21 insertions, 26 deletions
@@ -1,42 +1,37 @@ -# Maintainer: Marek Kubica <marek@xivilization.net> +# Maintainer: robertfoster +# Contributor: Marek Kubica <marek@xivilization.net> # Contributor: Serge Zirukin <ftrvxmtrx@gmail.com> + pkgname=ocaml-camomile -pkgver=0.8.5 -pkgrel=6 +pkgver=1.0.1 +pkgrel=1 pkgdesc="Comprehensive Unicode library for OCaml" arch=('i686' 'x86_64') 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 - 4.05-typing-fix.patch) -sha512sums=('ef4da32f955e69e0b2958b4b2bf12ae94e210d8aa7cee5a9030607b79ac43a884758549f3164c223fb07d987a4a50b15f0bc5083ff67120270409f7fb9928014' - 'd3a802e00ec871fffab8896faffe1592c2e92e6ae33c5226cd8ba371ec8f8632d4079984c2f2238e907c5ebb8ece68d142a42e5071f6660eeeaf5be0bb15d0bd' - '7476ea0bf478c15e94335ac2a669d7e7341144283efff6418dad8f32c5329b54817136892192ffed91904baf52b260990a9d8e2bb0517f09349174b076fc57d5') +makedepends=('ocaml' 'dune') +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 - patch -Np1 -i ../4.05-typing-fix.patch -} - build() { - cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}" + cd Camomile-${pkgver} + make all +} - ./configure --prefix=/usr - sed -i -e 's|ocamlfind install|ocamlfind install -destdir '${pkgdir}$(ocamlfind printconf destdir)'|' Makefile - make +check() { + cd Camomile-${pkgver} + make test } package() { - cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}" + cd Camomile-${pkgver} + + # Initialize OPAM, this should be removed once opam is “removed” from dune + export OPAMROOT="${srcdir}"/opam + opam init -n - mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" - make DATADIR="${pkgdir}/usr/share" install - install -Dm 644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + # Work around the install command + make OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" install } +md5sums=('9557fd86f13eba45474fc1336f225f32') |