[arch-commits] Commit in ocaml-stdio/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun May 30 22:38:17 UTC 2021


    Date: Sunday, May 30, 2021 @ 22:38:17
  Author: felixonmars
Revision: 950850

archrelease: copy trunk to community-x86_64

Added:
  ocaml-stdio/repos/community-x86_64/
  ocaml-stdio/repos/community-x86_64/PKGBUILD
    (from rev 950848, ocaml-stdio/trunk/PKGBUILD)

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

Copied: ocaml-stdio/repos/community-x86_64/PKGBUILD (from rev 950848, ocaml-stdio/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-05-30 22:38:17 UTC (rev 950850)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Peukert <dan.peukert at gmail.co>
+# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
+# Contributor: Jakob Gahde <j5lx at fmail.co.uk>
+
+_projectname='stdio'
+pkgname="ocaml-$_projectname"
+pkgver=0.14.0
+pkgrel=2
+pkgdesc='Standard IO Library for OCaml'
+arch=('x86_64')
+url="https://github.com/janestreet/$_projectname"
+license=('MIT')
+depends=('glibc' 'ocaml' 'ocaml-base')
+makedepends=('dune')
+options=('!strip')
+source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('1685cb86b29b07075ba6028431cf4e3f687c071d89996a6437442db2dfe1b0b2')
+
+_sourcedirectory="$_projectname-$pkgver"
+
+build() {
+	cd "$srcdir/$_sourcedirectory/"
+	dune build --release --verbose
+}
+
+package() {
+	cd "$srcdir/$_sourcedirectory/"
+	DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml' --release --verbose
+
+	install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+	mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/"
+	rm -r "$pkgdir/usr/doc/"
+
+	install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+	ln -sf "/usr/share/doc/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}



More information about the arch-commits mailing list