cake_wallet/scripts/linux/build_expat.sh

20 lines
456 B
Bash
Executable file

#!/bin/sh
set -e
. ./config.sh
EXPAT_VERSION=R_2_4_8
EXPAT_HASH="3bab6c09bbe8bf42d84b81563ddbcf4cca4be838"
EXPAT_SRC_DIR=${EXTERNAL_LINUX_SOURCE_DIR}/libexpat
git clone https://github.com/libexpat/libexpat.git -b ${EXPAT_VERSION} ${EXPAT_SRC_DIR}
cd $EXPAT_SRC_DIR
test `git rev-parse HEAD` = ${EXPAT_HASH} || exit 1
cd $EXPAT_SRC_DIR/expat
./buildconf.sh
./configure --enable-static --disable-shared --prefix=${EXTERNAL_LINUX_DIR}
make
make install