Created
October 1, 2021 10:20
-
-
Save getzze/6d4be0bdad2180ffb8381d0cbf78fa79 to your computer and use it in GitHub Desktop.
ocaml-cryptokit : modified PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: oliver < a t > first . in-berlin . de | |
# former maintainer: Taylor Venable <taylor@metasyntax.net> | |
pkgname="ocaml-cryptokit" | |
pkgver='1.161' | |
pkgrel=2 | |
pkgdesc='Cryptographic primitives for OCaml' | |
arch=('i686' 'x86_64') | |
url="http://pauillac.inria.fr/~xleroy/software.html#cryptokit" | |
license=('LGPL') | |
depends=('ocaml' 'zlib' 'ocaml-zarith') # OCaml as depend, or only makedepends? | |
makedepends=('ocaml' 'ocaml-findlib' 'dune') | |
#_srcname='release1161' | |
_srcname="release${pkgver//./}" | |
source=("https://github.com/xavierleroy/cryptokit/archive/${_srcname}.tar.gz") | |
sha256sums=('2c183579f7edbc18f5b3ec8d60e2dfe566d032988a475c22b6c9d450c89cf84f') | |
options=('staticlibs') | |
build() { | |
cd cryptokit-"${_srcname}" | |
./configure | |
dune build -p cryptokit | |
} | |
package() { | |
cd cryptokit-"${_srcname}" | |
DESTDIR="$pkgdir" dune install --prefix "/usr" --libdir "lib/ocaml" -p cryptokit | |
install -dm755 "${pkgdir}/usr/share" | |
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment