[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Thu May 20 20:20:59 UTC 2021
Date: Thursday, May 20, 2021 @ 20:20:59
Author: felixonmars
Revision: 939553
addpkg: ocaml-hashcons 1.3-1
Added:
ocaml-hashcons/
ocaml-hashcons/repos/
ocaml-hashcons/trunk/
ocaml-hashcons/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Added: ocaml-hashcons/trunk/PKGBUILD
===================================================================
--- ocaml-hashcons/trunk/PKGBUILD (rev 0)
+++ ocaml-hashcons/trunk/PKGBUILD 2021-05-20 20:20:59 UTC (rev 939553)
@@ -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