Artifact Content

Artifact 2f79707b46f50718e5f823858d0e16c38227fa6e:


#! /usr/bin/env bash

# BuildCompatible: KitCreator

version="0.4.0"
url="https://github.com/ray2501/tcl-lmdb/archive/${version}.tar.gz"
sha256='d19a19376da6716a1ed159a918e631030491f8b6a4ef9e72a4221481b24b2e40'

function postinstall() {
	local name
	local isWindows

	# Windows-only
	isWindows='false'
	if [ "${KC_CROSSCOMPILE}" = '1' ]; then
		case "${KC_CROSSCOMPILE_HOST_OS}" in
			*-cygwin|*-mingw32|*-mingw32-*|*-cygwin-*)
				isWindows='true'
				;;
		esac
	else
		case "${OSTYPE}" in
			msys|win*|cygwin)
				isWindows='true'
				;;
		esac
	fi

	if [ "${isWindows}" = 'true' ]; then
		find "${installdir}" -type -f -name '*.a' | while IFS='' read -r name; do
			echo '-lntdll' > "${name}.linkadd"
		done
	fi
}