[arch-commits] Commit in camlp-streams/repos (2 files)

Jürgen Hötzel juergen at gemini.archlinux.org
Tue Aug 9 20:25:16 UTC 2022


    Date: Tuesday, August 9, 2022 @ 20:25:16
  Author: juergen
Revision: 1264549

archrelease: copy trunk to community-x86_64

Added:
  camlp-streams/repos/community-x86_64/
  camlp-streams/repos/community-x86_64/PKGBUILD
    (from rev 1264548, camlp-streams/trunk/PKGBUILD)

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

Copied: camlp-streams/repos/community-x86_64/PKGBUILD (from rev 1264548, camlp-streams/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-08-09 20:25:16 UTC (rev 1264549)
@@ -0,0 +1,30 @@
+# Maintainer: Jürgen Hötzel
+pkgname="camlp-streams"
+pkgver=5.0.1
+_relname=v5.0.1
+pkgrel=1
+pkgdesc="The Stream and Genlex libraries for use with Camlp4 and Camlp5."
+arch=('x86_64')
+url="https://github.com/ocaml/camlp-streams"
+license=('BSD')
+makedepends=('dune')
+depends=('ocaml>=4.14.0' 'ocaml-compiler-libs')
+options=('!strip')
+source=("camlp-streams-${_relname}.tar.gz::https://github.com/ocaml/camlp-streams/archive/$_relname.tar.gz")
+sha256sums=('ad71f62406e9bb4e7fb5d4593ede2af6c68f8b0d96f25574446e142c3eb0d9a4')
+
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    dune build
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir="$(ocamlc -where)"
+
+    install -dm755 "${pkgdir}/usr/share/"
+    mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+
+    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list