extra/ocaml to 5.0.0-1

This commit is contained in:
David Beauchamp 2023-05-18 16:42:51 -04:00
parent 4a2547cef8
commit 1160c7531e

View file

@ -5,7 +5,7 @@
pkgbase='ocaml' pkgbase='ocaml'
pkgname=('ocaml' 'ocaml-compiler-libs') pkgname=('ocaml' 'ocaml-compiler-libs')
pkgver=4.14.0 pkgver=5.0.0
pkgrel=1 pkgrel=1
pkgdesc="A functional language with OO extensions" pkgdesc="A functional language with OO extensions"
arch=('x86_64') arch=('x86_64')
@ -14,7 +14,7 @@ url="https://caml.inria.fr/"
makedepends=('ncurses>=5.6-7') makedepends=('ncurses>=5.6-7')
optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features') optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
source=(https://caml.inria.fr/distrib/ocaml-${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) source=(https://caml.inria.fr/distrib/ocaml-${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
sha512sums=('0fae5b8752ce900bc69f71ebdc82faa588272fd3dce6795aa03467e89e1e376f127a288221761e353191fb5941b563e183098c0c74b18374aa0ca1c8e0715e97') sha512sums=('1ddc5ae1cbdccdb44dd1bb9878470bbac3ba225d4339aae35220cac99dda2640c74d48e536111ee47e7fe2a9848db8581966a6f1e182bb102ffade0454dc4ecd')
options=('!makeflags' '!emptydirs' 'staticlibs') options=('!makeflags' '!emptydirs' 'staticlibs')
@ -23,7 +23,7 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
CFLAGS+=' -ffat-lto-objects' CFLAGS+=' -ffat-lto-objects'
CXXFLAGS+=' -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 make --debug=v world.opt
} }
@ -51,11 +51,8 @@ optdepends=()
cd "${srcdir}/${pkgbase}-${pkgver}" cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
# Remove non-compiler-libs # Remove non-compiler-libs
rm -rf "${pkgdir}/usr/bin" "${pkgdir}/usr/lib/ocaml/caml" \ find "${pkgdir}/usr/lib/ocaml/" -mindepth 1 -maxdepth 1 -not -name "compiler-libs" -execdir rm -rf "{}" "+"
"${pkgdir}/usr/lib/ocaml/ocamldoc" "${pkgdir}/usr/lib/ocaml/stublibs" \ rm -rf "${pkgdir}/usr/bin" "${pkgdir}/usr/share"
"${pkgdir}/usr/lib/ocaml/threads" "${pkgdir}/usr/share"
find "${pkgdir}/usr/lib/ocaml/" -maxdepth 1 -type f -delete
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
} }