[arch-commits] Commit in ocaml/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Feb 27 02:37:58 UTC 2022


    Date: Sunday, February 27, 2022 @ 02:37:57
  Author: foutrelis
Revision: 438195

archrelease: copy trunk to extra-x86_64

Added:
  ocaml/repos/extra-x86_64/PKGBUILD
    (from rev 438194, ocaml/trunk/PKGBUILD)
Deleted:
  ocaml/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |  114 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 58 insertions(+), 56 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-27 02:37:51 UTC (rev 438194)
+++ PKGBUILD	2022-02-27 02:37:57 UTC (rev 438195)
@@ -1,56 +0,0 @@
-# Maintainer: Jürgen Hötzel <juergen at archlinux.org>
-
-pkgbase='ocaml'
-pkgname=('ocaml' 'ocaml-compiler-libs')
-pkgver=4.13.1
-pkgrel=2
-pkgdesc="A functional language with OO extensions"
-arch=('x86_64')
-license=('LGPL2.1' 'custom: QPL-1.0')
-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=('3f5f831b31fc83a281395f8461c6b074c92c648e33f55d66b6439e208e20e000e1e17b7c2d05bd5aabf3b3a622f28e64e5b9be8a1b327b505cc6aa56eadd0161')
-options=('!makeflags' '!emptydirs' 'staticlibs')
-
-
-
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  ./configure --prefix /usr --mandir /usr/share/man --disable-force-safe-string
-  make --debug=v world.opt
-}
-
-package_ocaml() {
-  cd "${srcdir}/${pkgbase}-${pkgver}"
-  make DESTDIR="${pkgdir}" install
-
-  # Save >10MB with this one, makepkg only strips debug symbols.
-  #find "${pkgdir}/usr/lib" -type f -name '*.so.*' -exec strip --strip-unneeded {} \;
-
-  # install license
-  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
-
-  # remove compiler libs
-  rm -rf "${pkgdir}/usr/lib/ocaml/compiler-libs"
-}
-
-package_ocaml-compiler-libs() {
-pkgdesc="Several modules used internally by the OCaml compiler"
-license=('custom: QPL-1.0')
-depends=('ocaml')
-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
-
-  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
-}

Copied: ocaml/repos/extra-x86_64/PKGBUILD (from rev 438194, ocaml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-27 02:37:57 UTC (rev 438195)
@@ -0,0 +1,58 @@
+# Maintainer: Jürgen Hötzel <juergen at archlinux.org>
+
+pkgbase='ocaml'
+pkgname=('ocaml' 'ocaml-compiler-libs')
+pkgver=4.13.1
+pkgrel=3
+pkgdesc="A functional language with OO extensions"
+arch=('x86_64')
+license=('LGPL2.1' 'custom: QPL-1.0')
+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=('3f5f831b31fc83a281395f8461c6b074c92c648e33f55d66b6439e208e20e000e1e17b7c2d05bd5aabf3b3a622f28e64e5b9be8a1b327b505cc6aa56eadd0161')
+options=('!makeflags' '!emptydirs' 'staticlibs')
+
+
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  CFLAGS+=' -ffat-lto-objects'
+  CXXFLAGS+=' -ffat-lto-objects'
+  ./configure --prefix /usr --mandir /usr/share/man --disable-force-safe-string
+  make --debug=v world.opt
+}
+
+package_ocaml() {
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+
+  # Save >10MB with this one, makepkg only strips debug symbols.
+  #find "${pkgdir}/usr/lib" -type f -name '*.so.*' -exec strip --strip-unneeded {} \;
+
+  # install license
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+  # remove compiler libs
+  rm -rf "${pkgdir}/usr/lib/ocaml/compiler-libs"
+}
+
+package_ocaml-compiler-libs() {
+pkgdesc="Several modules used internally by the OCaml compiler"
+license=('custom: QPL-1.0')
+depends=('ocaml')
+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
+
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
+}



More information about the arch-commits mailing list