summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ocaml-ssl/PKGBUILD38
1 files changed, 21 insertions, 17 deletions
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 <sigmundv at gmail dot com>
# Contributor (AUR): Denis Wernert <denis@wernert.info>
+# Contributor (AUR): Jakob Gahde <j5lx@fmail.co.uk>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# 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')