#!/bin/bash

package=utf8proc
version=-2.11.0

# compiling subversion 1.10.x required utf8proc
# https://juliastrings.github.io/utf8proc/releases/
# Getting utf8proc v2.11.0 (2025) from https://juliastrings.github.io/utf8proc/releases/
#
# Go to download page: https://github.com/JuliaStrings/utf8proc/releases/tag/v2.11.0
# Download link: https://codeload.github.com/JuliaStrings/utf8proc/tar.gz/refs/tags/v2.11.0
# Saved as utf8proc-2.11.0.tar.gz (not utf8proc-*v*2.11.0.tar.gz)

# Compile instructions: https://juliastrings.github.io/utf8proc/
#
# "On Unix, run make to compile static and dynamic libraries, make check to run some self-tests, and optionally sudo make install to install the libraries and header files in /usr/local (or sudo make prefix=/some/dir install to install in /some/dir). You can then link with the resulting libutf8proc library by including -lutf8proc in your link flags (preceded by -L/some/dir/lib if you installed in a nonstandard directory) and #include <utf8proc.h> in your source code (with a -I/some/dir/include compiler flag if you installed in a nonstandard directory)."

progname=$0

source ../cascade-make/lib/cascade-lib.bash GEXTSVN ../.. $*

prefix=$GEXTSVN_INSTALLED
#echo "*** prefix=$prefix"

opt_run_untar $force_untar $auto_untar $package $version
#opt_run_configure $force_config $auto_config $package $version $prefix

opt_run_make $compile   $package $version
#opt_run_make $compile   $package $version "check"
opt_run_make $install   $package $version "prefix=$prefix install"
#make prefix=$prefix install
opt_run_make $clean     $package $version "clean"
opt_run_make $distclean $package $version "distclean"

opt_run_tarclean $tarclean $package $version




