From 1160c7531e9d1298b89a70391927042386f0d376 Mon Sep 17 00:00:00 2001 From: David Beauchamp Date: Thu, 18 May 2023 16:42:51 -0400 Subject: [PATCH] extra/ocaml to 5.0.0-1 --- extra/ocaml/PKGBUILD | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/extra/ocaml/PKGBUILD b/extra/ocaml/PKGBUILD index f2c1c5d7d..dcb0043b7 100644 --- a/extra/ocaml/PKGBUILD +++ b/extra/ocaml/PKGBUILD @@ -5,7 +5,7 @@ pkgbase='ocaml' pkgname=('ocaml' 'ocaml-compiler-libs') -pkgver=4.14.0 +pkgver=5.0.0 pkgrel=1 pkgdesc="A functional language with OO extensions" arch=('x86_64') @@ -14,7 +14,7 @@ url="https://caml.inria.fr/" makedepends=('ncurses>=5.6-7') optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features') source=(https://caml.inria.fr/distrib/ocaml-${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) -sha512sums=('0fae5b8752ce900bc69f71ebdc82faa588272fd3dce6795aa03467e89e1e376f127a288221761e353191fb5941b563e183098c0c74b18374aa0ca1c8e0715e97') +sha512sums=('1ddc5ae1cbdccdb44dd1bb9878470bbac3ba225d4339aae35220cac99dda2640c74d48e536111ee47e7fe2a9848db8581966a6f1e182bb102ffade0454dc4ecd') options=('!makeflags' '!emptydirs' 'staticlibs') @@ -23,7 +23,7 @@ build() { cd "${srcdir}/${pkgname}-${pkgver}" CFLAGS+=' -ffat-lto-objects' CXXFLAGS+=' -ffat-lto-objects' - ./configure --prefix /usr --mandir /usr/share/man --disable-force-safe-string + ./configure --prefix /usr --mandir /usr/share/man make --debug=v world.opt } @@ -51,11 +51,8 @@ optdepends=() cd "${srcdir}/${pkgbase}-${pkgver}" make DESTDIR="${pkgdir}" install # Remove non-compiler-libs - rm -rf "${pkgdir}/usr/bin" "${pkgdir}/usr/lib/ocaml/caml" \ - "${pkgdir}/usr/lib/ocaml/ocamldoc" "${pkgdir}/usr/lib/ocaml/stublibs" \ - "${pkgdir}/usr/lib/ocaml/threads" "${pkgdir}/usr/share" - find "${pkgdir}/usr/lib/ocaml/" -maxdepth 1 -type f -delete - + find "${pkgdir}/usr/lib/ocaml/" -mindepth 1 -maxdepth 1 -not -name "compiler-libs" -execdir rm -rf "{}" "+" + rm -rf "${pkgdir}/usr/bin" "${pkgdir}/usr/share" install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" }