mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-15 16:12:16 +00:00
Handle some bash errors in build script.
This commit is contained in:
parent
939e241f61
commit
7646cbe8cb
1 changed files with 23 additions and 11 deletions
|
@ -1,25 +1,37 @@
|
|||
#!/bin/bash
|
||||
LINUX_DIRECTORY=$(pwd)
|
||||
mkdir build
|
||||
mkdir -p build
|
||||
|
||||
# Build JsonCPP
|
||||
cd build
|
||||
git clone https://github.com/open-source-parsers/jsoncpp.git
|
||||
cd jsoncpp
|
||||
cd build || exit
|
||||
if ! [ -x "$(command -v git)" ]; then
|
||||
echo 'Error: git is not installed.' >&2
|
||||
exit 1
|
||||
fi
|
||||
git -C jsoncpp pull || git clone https://github.com/open-source-parsers/jsoncpp.git jsoncpp
|
||||
cd jsoncpp || exit
|
||||
git checkout 1.7.4
|
||||
mkdir build
|
||||
cd build
|
||||
mkdir -p build
|
||||
cd build || exit
|
||||
cmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
|
||||
make -j$(nproc)
|
||||
make -j"$(nproc)"
|
||||
|
||||
cd $LINUX_DIRECTORY
|
||||
cd "$LINUX_DIRECTORY" || exit
|
||||
# Build libSecret
|
||||
# sudo apt install meson libgirepository1.0-dev valac xsltproc gi-docgen docbook-xsl
|
||||
# sudo apt install python3-pip
|
||||
#pip3 install --user meson --upgrade
|
||||
# pip3 install --user gi-docgen
|
||||
cd build
|
||||
git clone https://gitlab.gnome.org/GNOME/libsecret.git
|
||||
cd libsecret
|
||||
cd build || exit
|
||||
git -C libsecret pull || git clone https://gitlab.gnome.org/GNOME/libsecret.git libsecret
|
||||
cd libsecret || exit
|
||||
if ! [ -x "$(command -v meson)" ]; then
|
||||
echo 'Error: meson is not installed.' >&2
|
||||
exit 1
|
||||
fi
|
||||
meson _build
|
||||
if ! [ -x "$(command -v ninja)" ]; then
|
||||
echo 'Error: ninja is not installed.' >&2
|
||||
exit 1
|
||||
fi
|
||||
ninja -C _build
|
||||
|
|
Loading…
Reference in a new issue