Upgrade libcmark from 0.29.0 to 0.30.0

Test: cmark
pull/367/head
Michele Locati 2021-07-01 08:46:42 +02:00
parent 028307b6c2
commit efbfd61640
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 21 additions and 3 deletions

View File

@ -1568,12 +1568,30 @@ installRemoteModule() {
installRemoteModule_version=1.1.0 installRemoteModule_version=1.1.0
fi fi
fi fi
if ! test -e /usr/local/lib/libcmark.so && ! test -e /usr/lib/libcmark.so && ! test -e /usr/lib64/libcmark.so && ! test -e /lib/libcmark.so; then if ! test -e /usr/local/lib/libcmark.so && ! test -e /usr/local/lib64/libcmark.so && ! test -e /usr/lib/libcmark.so && ! test -e /usr/lib64/libcmark.so && ! test -e /lib/libcmark.so; then
cd "$(getPackageSource https://github.com/commonmark/cmark/archive/0.29.0.tar.gz)" case "$DISTRO_VERSION" in
debian@8)
# cmark library version 0.30.0 doesn't work with cmake 3.0 (debian jessie)
installRemoteModule_tmp=0.29.0
;;
*)
installRemoteModule_tmp=0.30.0
;;
esac
cd "$(getPackageSource https://github.com/commonmark/cmark/archive/$installRemoteModule_tmp.tar.gz)"
make -s -j$(getProcessorCount) cmake_build make -s -j$(getProcessorCount) cmake_build
make -s -j$(getProcessorCount) install make -s -j$(getProcessorCount) install
cd - >/dev/null cd - >/dev/null
case "$DISTRO" in
alpine)
if test -e /usr/local/lib64/libcmark.so.$installRemoteModule_tmp && ! test -e /usr/local/lib/libcmark.so.$installRemoteModule_tmp; then
ln -s /usr/local/lib64/libcmark.so.$installRemoteModule_tmp /usr/local/lib/
fi
;;
*)
ldconfig || true ldconfig || true
;;
esac
fi fi
;; ;;
csv) csv)