summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abdd050beab745ed556b660c64d948f05eae8b7c (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
# Maintainer: Christopher Price <pricechrispy at gmail dot com>
# Contributor: oliver < a t >  first . in-berlin . de
# Contributor: Taylor Venable <taylor@metasyntax.net>
pkgname="ocaml-cryptokit"
pkgver='1.21.1'
pkgrel=1
pkgdesc='Cryptographic primitives for OCaml'
arch=('x86_64')
url="http://pauillac.inria.fr/~xleroy/software.html#cryptokit"
license=('LGPL')
depends=('ocaml' 'zlib' 'ocaml-zarith')
makedepends=('ocaml' 'ocaml-findlib' 'dune')
_srcname="release${pkgver//./}"
source=("https://github.com/xavierleroy/cryptokit/archive/${_srcname}.tar.gz")
sha256sums=('186fda8b2063882688e1c2621c8234c35acdf4e10cfdd3213ee04bef16902953')
options=('staticlibs')

build() {
    cd cryptokit-"${_srcname}"
    ./configure

    dune build -p cryptokit
}

package() {
    cd cryptokit-"${_srcname}"
    DESTDIR="$pkgdir" dune install --prefix "/usr" --libdir "$(ocamlfind printconf destdir)" -p cryptokit
    install -dm755 "${pkgdir}/usr/share"
    mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share"
}