summaryrefslogtreecommitdiff
path: root/pcr/ocaml-ssl/PKGBUILD
blob: 60ffb485509871d205f6869f80f0d69c1a4a254f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.7
pkgrel=2
pkgdesc="OCaml SSL Library"
arch=('i686' 'x86_64')
arch+=('armv7h')
url="http://savonet.sourceforge.net/"
license=('custom')
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
    make
}

package() {
    cd ${pkgname}-${pkgver}

    # 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=('47ce60f1a019ddb9c66c4f1c8b9ed862')