qulogic/pidgin3-deps
Clone
Summary
Browse
Changes
Graph
Add Conanfile for external deps
6 months ago, Elliott Sales de Andrade
003104a9cc52
file is
Executable
Add Conanfile for external deps
#!/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/"