Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -155,10 +155,15 @@ lmdb/build lmdb/build.log lmdb/inst lmdb/out lmdb/src +tclcurl/build +tclcurl/build.log +tclcurl/inst +tclcurl/out +tclcurl/src kitdll/buildsrc/kitdll-0.0/starpack.vfs kitdll/buildsrc/kitdll-0.0/starpack.vfs/* kitdll/buildsrc/kitdll-0.0/test kitdll/buildsrc/kitdll-0.0/configure kitdll/buildsrc/kitdll-0.0/libtcl*.so Index: build/web/kitcreator.vfs/index.rvt ================================================================== --- build/web/kitcreator.vfs/index.rvt +++ build/web/kitcreator.vfs/index.rvt @@ -66,10 +66,11 @@ set packages(udp) "TclUDP" set packages(nsf) "Next Scripting Framework" set packages(tdom) "tDOM" set packages(tuapi) "Tcl UNIX API" set packages(lmdb) "LMDB" + set packages(tclcurl) "cURL" set disable { platform linux-mipsel {package_tk package_tcc4tcl package_tclx kitdll} platform android-arm {package_tk package_tclx} platform freebsd-amd64 {package_tuapi} ADDED tclcurl/build.sh Index: tclcurl/build.sh ================================================================== --- /dev/null +++ tclcurl/build.sh @@ -0,0 +1,23 @@ +#! /usr/bin/env bash + +# BuildCompatible: KitCreator + +version='7.22.0' +url="https://github.com/flightaware/tclcurl-fa/archive/1fd1b4178a083f4821d0c45723605824fbcdb017.tar.gz" +sha256='5abad0f369205b8369819f3993a700bb452921bcab7f42056ef29a1adc3eb093' +tclpkg='TclCurl' + +function postinstall() { + if [ "${pkg_configure_shared_build}" = '0' ]; then + ( + eval "$(grep '^PKG_LIBS=' config.log)" || exit 1 + find "${installdir}" -type f -name '*.a' | while IFS='' read -r filename; do + echo "${PKG_LIBS}" > "${filename}.linkadd" + done + ) || return 1 + + cat << \_EOF_ | sed "s|@@VERSION@@|${version}|g"> "${installdir}/lib/TclCurl${version}/pkgIndex.tcl" +package ifneeded TclCurl @@VERSION@@ [list load {} TclCurl]\n[list source [file join $dir tclcurl.tcl]] +_EOF_ + fi +}