From e02defb5aca853a304572fcefed4876878c1f8f4 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Tue, 12 Feb 2019 08:51:02 +0100 Subject: pcr/ocaml-ssl: updated to 0.5.7 --- pcr/ocaml-ssl/PKGBUILD | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'pcr/ocaml-ssl') diff --git a/pcr/ocaml-ssl/PKGBUILD b/pcr/ocaml-ssl/PKGBUILD index 412b9939a..60ffb4855 100644 --- a/pcr/ocaml-ssl/PKGBUILD +++ b/pcr/ocaml-ssl/PKGBUILD @@ -1,38 +1,42 @@ # Maintainer (AUR): robertfoster # Contributor (AUR): Sigmund Vestergaard # Contributor (AUR): Denis Wernert +# Contributor (AUR): Jakob Gahde # Maintainer: Omar Vega Ramos # parabola changes and rationale: # no changes. pkgname=ocaml-ssl -pkgver=0.5.5 -pkgrel=1 +pkgver=0.5.7 +pkgrel=2 pkgdesc="OCaml SSL Library" -arch=('i686' 'x86_64' 'armv7h') +arch=('i686' 'x86_64') +arch+=('armv7h') url="http://savonet.sourceforge.net/" license=('custom') -depends=('openssl') -makedepends=('ocaml' 'ocaml-findlib' 'autoconf') -source=(https://github.com/savonet/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz) +depends=('ocaml' 'openssl') +makedepends=('bubblewrap' 'dune' 'ocaml-findlib' 'opam') +source=("$pkgname-$pkgver.tar.gz::https://github.com/savonet/ocaml-ssl/archive/$pkgver.tar.gz") options=(!libtool !strip zipman !makeflags staticlibs) build() { - cd $pkgname-$pkgver - autoconf - ./configure --prefix /usr - make + cd $pkgname-$pkgver + make } package() { - OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" - cd $pkgname-$pkgver - mkdir -p $OCAMLFIND_DESTDIR/stublibs - OCAMLFIND_INSTFLAGS="-destdir $OCAMLFIND_DESTDIR -ldconf /dev/null" make install + cd ${pkgname}-${pkgver} - mkdir -p $pkgdir/usr/share/licenses/$pkgname/ - awk 'BEGIN{P=0} /License/ {P = 1;} {if (P) print}' README.md > $pkgdir/usr/share/licenses/$pkgname/license + # Initialize OPAM, this should be removed once opam is “removed” from dune + #export OPAMROOT="${srcdir}"/opam + #opam init --bare -n + + # Work around the install command + OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" jbuilder install --prefix=${pkgdir}/usr/share + # Install LICENSE + mkdir -p $pkgdir/usr/share/licenses/$pkgname/ + awk 'BEGIN{P=0} /License/ {P = 1;} {if (P) print}' README.md > $pkgdir/usr/share/licenses/$pkgname/license } -md5sums=('cdb1cdf9ee8c582165d4d11f35e53c4d') +md5sums=('47ce60f1a019ddb9c66c4f1c8b9ed862') -- cgit v1.2.3