fltk-1.4.1 + md5sum check (WIP)

This commit is contained in:
Jean-François DEL NERO
2024-12-14 20:51:22 +01:00
parent dcd8a3f68b
commit de1047b3a7
@@ -1,19 +1,22 @@
#!/bin/bash
if [ $OSTYPE == 'darwin'* ] || [ $1 = "1" ] ; then
export DOWNLOADURL=https://www.fltk.org/pub/fltk/1.4.0/fltk-1.4.0-1-source.tar.gz
export ARCHIVENAMEBASE=fltk-1.4.0-1-source
export DOWNLOADURL=https://github.com/fltk/fltk/releases/download/release-1.4.1/fltk-1.4.1-source.tar.gz
export DOWNLOADHASH="203eed9e14a7bd6ff0373c0f3f32ef07"
export ARCHIVENAMEBASE=fltk-1.4.1-source
export PATCHFILE=
export FOLDERNAME=fltk-1.4.0-1
export FOLDERNAME=fltk-1.4.1
else
export DOWNLOADURL=https://www.fltk.org/pub/fltk/1.4.0/fltk-1.4.0-1-source.tar.gz
export ARCHIVENAMEBASE=fltk-1.4.0-1-source
export DOWNLOADURL=https://github.com/fltk/fltk/releases/download/release-1.4.1/fltk-1.4.1-source.tar.gz
export DOWNLOADHASH="203eed9e14a7bd6ff0373c0f3f32ef07"
export ARCHIVENAMEBASE=fltk-1.4.1-source
export PATCHFILE=fltk-1.4.x-vc6.patch
export FOLDERNAME=fltk-1.4.0-1
export FOLDERNAME=fltk-1.4.1
fi
if [[ ! -d fltk-1.x.x ]]; then
wget $DOWNLOADURL -nc || exit 1
echo ${DOWNLOADHASH} ${ARCHIVENAMEBASE}.tar.gz | md5sum -c -
tar -xzf ${ARCHIVENAMEBASE}.tar.gz
mv ${FOLDERNAME} fltk-1.x.x
if [[ -n ${PATCHFILE} ]]; then