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

Felix Yan felixonmars at archlinux.org
Thu May 20 20:21:13 UTC 2021


    Date: Thursday, May 20, 2021 @ 20:21:13
  Author: felixonmars
Revision: 939554

archrelease: copy trunk to community-x86_64

Added:
  ocaml-hashcons/repos/community-x86_64/
  ocaml-hashcons/repos/community-x86_64/PKGBUILD
    (from rev 939553, ocaml-hashcons/trunk/PKGBUILD)

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

Copied: ocaml-hashcons/repos/community-x86_64/PKGBUILD (from rev 939553, ocaml-hashcons/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-05-20 20:21:13 UTC (rev 939554)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ocaml-hashcons
+pkgver=1.3
+pkgrel=1
+pkgdesc='OCaml hash-consing library'
+url="https://github.com/backtracking/ocaml-hashcons"
+arch=('x86_64')
+license=('LGPL2.1')
+depends=('ocaml>=4.11.0')
+makedepends=('ocaml-findlib')
+options=('!strip' '!makeflags' 'staticlibs')
+source=("https://github.com/backtracking/ocaml-hashcons/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('59c72966f48ea67c694dd49099eca180b52d3da81d4300172ace6edb4a5d72ce')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # Our destdir won't have it installed. Calling ocamlfind remove fails due to a syntax error
+  sed -i '/remove/d' Makefile.in
+
+  autoconf
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure
+  make all opt
+}
+
+package() {
+  cd $pkgname-$pkgver
+  mkdir -p $pkgdir/usr/lib/ocaml
+  make DESTDIR="-destdir $pkgdir/usr/lib/ocaml" install
+}



More information about the arch-commits mailing list