[arch-commits] Commit in ocaml-compiler-libs-repackaged/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun May 30 23:09:41 UTC 2021


    Date: Sunday, May 30, 2021 @ 23:09:41
  Author: felixonmars
Revision: 950945

archrelease: copy trunk to community-x86_64

Added:
  ocaml-compiler-libs-repackaged/repos/community-x86_64/
  ocaml-compiler-libs-repackaged/repos/community-x86_64/PKGBUILD
    (from rev 950943, ocaml-compiler-libs-repackaged/trunk/PKGBUILD)

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

Copied: ocaml-compiler-libs-repackaged/repos/community-x86_64/PKGBUILD (from rev 950943, ocaml-compiler-libs-repackaged/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-05-30 23:09:41 UTC (rev 950945)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Peukert <dan.peukert at gmail.com>
+# Contributor: Jakob Gahde <j5lx at fmail.co.uk>
+
+_projectname='compiler-libs'
+_pkgname="ocaml-$_projectname"
+pkgname="$_pkgname-repackaged"
+pkgver=0.12.3
+pkgrel=1
+pkgdesc='OCaml compiler libraries repackaged'
+arch=('x86_64')
+url="https://github.com/janestreet/$_pkgname"
+license=('MIT')
+depends=('ocaml')
+makedepends=('dune')
+options=('!strip')
+source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('86b23bf8df2e027ecfc04f6a326cdc87f27b2e3790860fbc28aabb9d0c2cc174')
+
+_sourcedirectory="$_pkgname-$pkgver"
+
+build() {
+	cd "$srcdir/$_sourcedirectory/"
+	dune build -p "$_pkgname" --verbose
+}
+
+package() {
+	cd "$srcdir/$_sourcedirectory/"
+	DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml'
+
+	install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+	mv "$pkgdir/usr/doc/$_pkgname/"* "$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