[arch-commits] Commit in ocaml-integers/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Dec 20 21:42:11 UTC 2021
Date: Monday, December 20, 2021 @ 21:42:10
Author: felixonmars
Revision: 432848
archrelease: copy trunk to community-x86_64
Added:
ocaml-integers/repos/community-x86_64/
ocaml-integers/repos/community-x86_64/PKGBUILD
(from rev 432847, ocaml-integers/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: ocaml-integers/repos/community-x86_64/PKGBUILD (from rev 432847, ocaml-integers/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-12-20 21:42:10 UTC (rev 432848)
@@ -0,0 +1,30 @@
+# Maintainer: Jürgen Hötzel <juergen at archlinux.org>
+
+pkgname=ocaml-integers
+pkgver=0.5.1
+pkgrel=1
+pkgdesc='Library for binding to C libraries using pure OCaml'
+arch=('x86_64')
+url=https://github.com/ocamllabs/ocaml-integers
+license=('custom')
+options=('!strip')
+makedepends=('dune' 'ocaml-topkg' 'ocaml-findlib' 'ocaml-compiler-libs>=4.12.0' 'ocamlbuild' 'opam')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('f608ce98caf41ddb4eea90e8673bb8ff35acb07ef951bc0bf75b5989ef9b36b8')
+
+
+build() {
+ cd ${pkgname}-$pkgver
+ dune build --profile release
+}
+
+package() {
+ cd ${pkgname}-$pkgver
+
+ opam-installer --prefix="${pkgdir}/usr" \
+ --libdir="${pkgdir}$(ocamlc -where)" \
+ --docdir="${pkgdir}/usr/share/doc" \
+ --stubsdir="${pkgdir}$(ocamlc -where)/stublibs" \
+ ./_build/default/integers.install
+ install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE.md
+}
More information about the arch-commits
mailing list