diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-24 22:20:59 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-25 22:58:10 +0700 |
commit | d7b1f822e73692f28be77975bcf7113836468df1 (patch) | |
tree | 0424d1bf4f3a59afb6d51d2b5403a7a469c96337 /libraries/ocaml-findlib | |
parent | bab69f551d7b7cf14511645fb1f8bbf9b644b0bd (diff) |
libraries/ocaml-findlib: Updated for version 1.9.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/ocaml-findlib')
-rw-r--r-- | libraries/ocaml-findlib/doinst.sh | 16 | ||||
-rw-r--r-- | libraries/ocaml-findlib/ocaml-findlib.SlackBuild | 5 | ||||
-rw-r--r-- | libraries/ocaml-findlib/ocaml-findlib.info | 6 |
3 files changed, 14 insertions, 13 deletions
diff --git a/libraries/ocaml-findlib/doinst.sh b/libraries/ocaml-findlib/doinst.sh index 842fcab2f78d5..fcce56473ea25 100644 --- a/libraries/ocaml-findlib/doinst.sh +++ b/libraries/ocaml-findlib/doinst.sh @@ -1,14 +1,14 @@ -#!/bin/sh config() { - old="$1" - new="$old.new" - if [ ! -r $old ]; then - mv $new $old - elif [ "$(cat $old | md5sum)" = "$(cat $new | md5sum)" ]; then - rm $new + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW fi } -config etc/findlib.conf +config etc/findlib.conf.new destdir=$(chroot . /usr/bin/ocamlfind printconf destdir)/stublibs ldconf=$(chroot . /usr/bin/ocamlfind printconf ldconf) diff --git a/libraries/ocaml-findlib/ocaml-findlib.SlackBuild b/libraries/ocaml-findlib/ocaml-findlib.SlackBuild index c98cda158393b..3a8c7852a8030 100644 --- a/libraries/ocaml-findlib/ocaml-findlib.SlackBuild +++ b/libraries/ocaml-findlib/ocaml-findlib.SlackBuild @@ -2,6 +2,7 @@ # Copyright 2011 - 2014 Jockey S. Kyd, Shanghai, CHN # Copyright 2014 Markus Hutmacher <mailing@markhu.de> +# Copyright 2016-2022 Matteo Bernardini <ponce@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ocaml-findlib -VERSION=${VERSION:-1.8.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.9.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/libraries/ocaml-findlib/ocaml-findlib.info b/libraries/ocaml-findlib/ocaml-findlib.info index d5e7d3ed202eb..99c524f38600e 100644 --- a/libraries/ocaml-findlib/ocaml-findlib.info +++ b/libraries/ocaml-findlib/ocaml-findlib.info @@ -1,8 +1,8 @@ PRGNAM="ocaml-findlib" -VERSION="1.8.1" +VERSION="1.9.1" HOMEPAGE="http://projects.camlcity.org/projects/findlib.html" -DOWNLOAD="http://download.camlcity.org/download/findlib-1.8.1.tar.gz" -MD5SUM="18ca650982c15536616dea0e422cbd8c" +DOWNLOAD="http://download.camlcity.org/download/findlib-1.9.1.tar.gz" +MD5SUM="65e6dc9b305ccbed1267275fe180f538" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ocaml" |