blob: 34026a4c0c1f8357a5a8f7227705e7705f43ab7c (
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.20.1'
pkgrel=2
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=('b933c32b4e03e7236add969c2f583df241aeff8eabd2cabb1f345a78250fcea6')
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"
}
|