mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Original mdbtools developer gave up the project some time ago, and it's continued with his permission in a forked repo: https://github.com/mdbtools/mdbtools.git There was a nasty bug in libmdb, triggered under some rare circustances, that is solved in the new repo which is, BTW, under current development. Move our scripts to the new repo and set our working version to the latest release tag, currently, "v1.0.0" Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
72 lines
2 KiB
Bash
72 lines
2 KiB
Bash
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# Travis only pulls shallow repos. But that messes with git describe.
|
|
# Sorry Travis, fetching the whole thing and the tags as well...
|
|
git fetch --unshallow
|
|
git pull --tags
|
|
git describe --match "v[0-9]*"
|
|
|
|
# grab our own custom MXE environment
|
|
pushd ${TRAVIS_BUILD_DIR}/..
|
|
echo "Downloading prebuilt MXE environment from Subsurface-divelog.org"
|
|
wget -q http://subsurface-divelog.org/downloads/mxe-994ad473.tar.xz
|
|
mkdir -p mxe
|
|
tar xJ -C mxe -f mxe-994ad473.tar.xz
|
|
|
|
# hack around path dependency - needs to be fixed
|
|
sudo mkdir -p /data/winqt551/
|
|
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /data/winqt551/mxe-current
|
|
ls -l /data/winqt551/mxe-current/usr
|
|
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /usr/src/mxe
|
|
popd
|
|
|
|
# now set up our other dependencies
|
|
|
|
CURRENT_LIBZIP="1.2.0"
|
|
CURRENT_HIDAPI="hidapi-0.7.0"
|
|
CURRENT_LIBUSB="v1.0.21"
|
|
CURRENT_LIBGIT2="v0.26.0"
|
|
|
|
# make sure we have libdivecomputer
|
|
echo "Get libdivecomputer"
|
|
cd ${TRAVIS_BUILD_DIR}
|
|
git submodule update --recursive
|
|
cd libdivecomputer
|
|
autoreconf --install
|
|
autoreconf --install
|
|
|
|
echo "Get libusb"
|
|
cd ${TRAVIS_BUILD_DIR}/..
|
|
git clone https://github.com/libusb/libusb
|
|
cd libusb
|
|
if ! git checkout $CURRENT_LIBUSB ; then
|
|
echo "Can't find the right tag in libusb - giving up"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Get libgit2"
|
|
cd ${TRAVIS_BUILD_DIR}/..
|
|
git clone https://github.com/libgit2/libgit2.git
|
|
cd libgit2
|
|
if ! git checkout $CURRENT_LIBGIT2 ; then
|
|
echo "Can't find the right tag in libgit2 - giving up"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Get googlemaps"
|
|
cd ${TRAVIS_BUILD_DIR}/..
|
|
git clone https://github.com/Subsurface/googlemaps.git
|
|
|
|
echo "Get mdbtools"
|
|
cd ${TRAVIS_BUILD_DIR}/..
|
|
git clone https://github.com/mdbtools/mdbtools.git
|
|
|
|
# get prebuilt mxe libraries for mdbtools and glib.
|
|
# do not overwrite upstream prebuilt mxe binaries if there is any coincidence.
|
|
wget https://www.dropbox.com/s/842skyusb96ii1u/mxe-static-minimal-994ad473.tar.xz
|
|
[[ ! -f mxe-static-minimal-994ad473.tar.xz ]] && exit 1
|
|
cd mxe
|
|
tar -xJf ../mxe-static-minimal-994ad473.tar.xz --skip-old-files
|
|
ls -al usr/
|