summaryrefslogtreecommitdiff
path: root/build-aux/appveyor-install.sh
blob: 459c955650645d07dbd6c10d4af0013361169353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Pre-install script for appveyor: install build deps

# Get mingw type, if any, from MSYSTEM
case $MSYSTEM in
    MINGW32)
        MINGW_ARCH=i686
        PREFIX=/mingw32
        ;;
    MINGW64)
        MINGW_ARCH=x86_64
        PREFIX=/mingw64
        ;;
esac

# GLib
pacman --noconfirm -S mingw-w64-$MINGW_ARCH-glib2 glib2-devel mingw-w64-$MINGW_ARCH-hunspell mingw-w64-$MINGW_ARCH-hunspell-en

# UnitTest++ is not packaged in mingw
wget https://github.com/unittest-cpp/unittest-cpp/releases/download/v1.6.1/unittest-cpp-1.6.1.tar.gz
tar zxvf unittest-cpp-1.6.1.tar.gz
cd unittest-cpp-1.6.1
./configure --prefix=$PREFIX && make && make install
cd ..