diff options
Diffstat (limited to 'development/ocaml/ocaml.SlackBuild')
-rw-r--r-- | development/ocaml/ocaml.SlackBuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/development/ocaml/ocaml.SlackBuild b/development/ocaml/ocaml.SlackBuild index 9134b591c301..d829c4613810 100644 --- a/development/ocaml/ocaml.SlackBuild +++ b/development/ocaml/ocaml.SlackBuild @@ -4,6 +4,7 @@ # Copyright 2007-2014 Ferenc Deak <ferenc.deak@gmail.com> # 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 @@ -26,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ocaml -VERSION=${VERSION:-4.08.1} -MANVER=${MANVER:-4.08} +VERSION=${VERSION:-4.13.1} +MANVER=${MANVER:-4.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -81,15 +82,16 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -sed "s|@CFLAGS@|$SLKCFLAGS -fcommon|" $CWD/configure.patch | patch -p1 +sed "s|@CFLAGS@|$SLKCFLAGS|" $CWD/configure.patch | patch -p1 ./configure \ --prefix /usr \ --libdir /usr/lib${LIBDIRSUFFIX}/ocaml \ - --mandir /usr/man + --mandir /usr/man \ + --disable-force-safe-string -make -j1 world.opt -make -j1 DESTDIR=$PKG install +make world.opt +make DESTDIR=$PKG install find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |