qulogic/pidgin3-deps

Try adding a libidn wrap file

7 months ago, Elliott Sales de Andrade
40cb8ef468fa
file isExecutable
Try adding a libidn wrap file

This uses Meson's external project support, but that doesn't appear
to work well.
#!/bin/sh -e
VENV_DIR=${VENV_DIR:-"venv"}
if [ -n "${VIRTUAL_ENV}" ] ; then
echo "active virtual environment detected, aborting..." >&2
exit 1
fi
if [ -d "${VENV_DIR}" ] ; then
echo "${VENV_DIR} exists, aborting..." >&2
exit 1
fi
# create the venv
python3 -m venv "${VENV_DIR}"
# activate the virtual env
. "${VENV_DIR}"/bin/activate
# turn on command echoing
set -x
# update pip
pip install -U pip
# install mercurial and meson
pip install -U mercurial meson ninja
# build a static version of pkg-config
PKG_CONFIG_VERSION="0.29.2"
curl -L --output - "https://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_CONFIG_VERSION}.tar.gz" | \
tar zxf - && \
cd "pkg-config-${PKG_CONFIG_VERSION}" && \
./configure --with-internal-glib --enable-static && \
make -s && \
cp pkg-config "../${VENV_DIR}/bin/"