Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
ocaml-hashcons


Commits:
c1991bdf by Felix Yan at 2026-03-04T01:59:13+08:00
upgpkg: 1.4.0-1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,17 @@
 pkgbase = ocaml-hashcons
        pkgdesc = OCaml hash-consing library
-       pkgver = 1.3
-       pkgrel = 12
+       pkgver = 1.4.0
+       pkgrel = 1
        url = https://github.com/backtracking/ocaml-hashcons
        arch = x86_64
        license = LGPL2.1
-       makedepends = ocaml-findlib
+       makedepends = git
+       makedepends = dune
        depends = ocaml
        options = !strip
        options = !makeflags
        options = staticlibs
-       source = 
https://github.com/backtracking/ocaml-hashcons/archive/1.3/ocaml-hashcons-1.3.tar.gz
-       sha256sums = 
59c72966f48ea67c694dd49099eca180b52d3da81d4300172ace6edb4a5d72ce
+       source = 
git+https://github.com/backtracking/ocaml-hashcons.git#tag=1.4.0
+       sha512sums = 
3efec9d85d5f3a58bc5daf1c1a908846b1c3ea78f84ebcc860344626e35d11c56337fe1d4b4b22d9892a00779ccc7342649ab0d69fe3d5b9f3cc847cb98790e1
 
 pkgname = ocaml-hashcons


=====================================
PKGBUILD
=====================================
@@ -1,34 +1,24 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=ocaml-hashcons
-pkgver=1.3
-pkgrel=12
+pkgver=1.4.0
+pkgrel=1
 pkgdesc='OCaml hash-consing library'
 url="https://github.com/backtracking/ocaml-hashcons";
 arch=('x86_64')
 license=('LGPL2.1')
 depends=('ocaml')
-makedepends=('ocaml-findlib')
+makedepends=('git' 'dune')
 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
-}
+source=("git+https://github.com/backtracking/ocaml-hashcons.git#tag=$pkgver";)
+sha512sums=('3efec9d85d5f3a58bc5daf1c1a908846b1c3ea78f84ebcc860344626e35d11c56337fe1d4b4b22d9892a00779ccc7342649ab0d69fe3d5b9f3cc847cb98790e1')
 
 build() {
-  cd $pkgname-$pkgver
-  ./configure
-  make all opt
+  cd $pkgname
+  dune build --release
 }
 
 package() {
-  cd $pkgname-$pkgver
-  mkdir -p $pkgdir/usr/lib/ocaml
-  make DESTDIR="-destdir $pkgdir/usr/lib/ocaml" install
+  cd $pkgname
+  DESTDIR="$pkgdir" dune install --prefix /usr --libdir /usr/lib/ocaml 
--docdir /usr/share/doc/$pkgname
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ocaml-hashcons/-/commit/c1991bdf0858c92b871a4fad632afdb707afe5c7

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ocaml-hashcons/-/commit/c1991bdf0858c92b871a4fad632afdb707afe5c7
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to