[arch-commits] Commit in ocaml-ctypes/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Oct 10 02:34:34 UTC 2021


    Date: Sunday, October 10, 2021 @ 02:34:34
  Author: foutrelis
Revision: 425628

archrelease: copy trunk to staging-x86_64

Added:
  ocaml-ctypes/repos/staging-x86_64/
  ocaml-ctypes/repos/staging-x86_64/PKGBUILD
    (from rev 425627, ocaml-ctypes/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: ocaml-ctypes/repos/staging-x86_64/PKGBUILD (from rev 425627, ocaml-ctypes/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-10-10 02:34:34 UTC (rev 425628)
@@ -0,0 +1,33 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Armin K. <krejzi at email dot com>
+
+pkgname=ocaml-ctypes
+pkgver=0.17.1
+pkgrel=7
+pkgdesc="Library for binding to C libraries using pure OCaml"
+arch=('x86_64')
+url="https://github.com/ocamllabs/ocaml-ctypes"
+license=('MIT')
+depends=('ocaml>=4.12.0' 'libffi' 'ocaml-integers')
+makedepends=('ocaml-findlib' 'ocaml-compiler-libs')
+options=('!strip' '!makeflags')
+source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz)
+sha512sums=('1e197009f7e6b29b43944f757e987934337ebfa11bb2ff2ca8ba3ebc607e37cf1259d07a90d7faf4b91b49ee20d5c65357ad305f34ada0a8d336a3904233150e')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  local _destdir="$pkgdir$(ocamlfind printconf destdir)"
+  install -d "$_destdir/stublibs"
+
+  make OCAMLFIND_DESTDIR="$_destdir" install
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list