grim/pidgin3-deps

Add the patches for the gtk wrap files
draft
2021-04-26, Gary Kramlich
f4e241a22d71
file isExecutable
Add the patches for the gtk wrap files
#!/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
# turn on command echoing
set -x
# create the venv
python3 -m venv "${VENV_DIR}"
# activate the virtual env
. "${VENV_DIR}"/bin/activate
# update pip
pip install -U pip
# install mercurial and meson
pip install -U mercurial meson
# download ninja and install it to the bin directory in the virtualenv
NINJA_VERSION="v1.10.1"
curl -L --output - "https://github.com/ninja-build/ninja/releases/download/${NINJA_VERSION}/ninja-mac.zip" | \
funzip > "${VENV_DIR}/bin/ninja" && \
chmod +x "${VENV_DIR}/bin/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 xf - && \
cd "pkg-config-${PKG_CONFIG_VERSION}" && \
./configure --with-internal-glib --enable-static && \
make -s && \
cp pkg-config "../${VENV_DIR}/bin/"