summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d4dce9d8313217e1cc7c4fc31cee82913ddcb37 (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
# 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.19'
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=('a7e203aac7fb86fa26fbcc5e7243c8e0f46f0d084bfaf06767d0b816fc12ccb1')
options=('staticlibs')

build() {
    #tar -xzvf release1161.tar.gz
    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"
}