From c0d6f1321393c5220147b5883b4548d66d0ce901 Mon Sep 17 00:00:00 2001 From: Andy Li Date: Fri, 13 Dec 2019 22:12:22 +0800 Subject: testing/ocaml-sha: new aport https://github.com/djs55/ocaml-sha Binding to the SHA cryptographic functions --- testing/ocaml-sha/APKBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 testing/ocaml-sha/APKBUILD (limited to 'testing/ocaml-sha') diff --git a/testing/ocaml-sha/APKBUILD b/testing/ocaml-sha/APKBUILD new file mode 100644 index 0000000000..0dcec29b61 --- /dev/null +++ b/testing/ocaml-sha/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Andy Li +# Maintainer: Andy Li +pkgname=ocaml-sha +pkgver=1.12 +pkgrel=0 +pkgdesc="Binding to the SHA cryptographic functions" +url="https://github.com/djs55/ocaml-sha" +arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml aport +license="ISC" +depends="ocaml-runtime" +depends_dev="$pkgname=$pkgver-r$pkgrel" +makedepends="dune ocaml ocaml-findlib ocaml-ounit-dev" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" + +build() { + dune build @install -p sha --no-buffer --verbose +} + +check() { + dune runtest --verbose +} + +package() { + mkdir -p "$pkgdir"/usr/lib/ocaml + dune install --destdir="$pkgdir" + + # There are just CHANGES, README, and LICENSE. + rm -Rf "$pkgdir"/usr/doc + + # Remove annotation files and sources. + rm \ + "$pkgdir"/usr/lib/ocaml/sha/*.cmt \ + "$pkgdir"/usr/lib/ocaml/sha/*.cmti \ + "$pkgdir"/usr/lib/ocaml/sha/*.ml +} + +dev() { + default_dev + + mkdir -p "$subpkgdir"/usr/lib/ocaml/sha + mv \ + "$pkgdir"/usr/lib/ocaml/sha/*.cmx \ + "$pkgdir"/usr/lib/ocaml/sha/*.cmxa \ + "$pkgdir"/usr/lib/ocaml/sha/*.mli \ + "$subpkgdir"/usr/lib/ocaml/sha/ +} + +sha512sums="e6cdbc66202281a72ccc3592d6efba0448fe28dba7a23f8079d3a3cee12c03d01338191da88e4e4834f5ee19321ffed1c950e7a5babc73479221d8da3fe372d3 ocaml-sha-1.12.tar.gz" -- cgit v1.2.3