summaryrefslogtreecommitdiff
path: root/build-aux/appveyor-install.sh
blob: 2d96d6bc013496e119c58cbacdae9e02a41afc2c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# Pre-install script for appveyor: install build deps

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

# GLib
if test -n "$MINGW_BITS"; then
    pacman --noconfirm -S mingw-w64-$MINGW_BITS-glib2
fi
pacman --noconfirm -S glib2-devel

# Hunspell dictionary (only need one flavour)
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-hunspell-en-2016.11.20-2-any.pkg.tar.xz
pacman --noconfirm -U mingw-w64-x86_64-hunspell-en-2016.11.20-2-any.pkg.tar.xz

# Hunspell
wget https://github.com/hunspell/hunspell/archive/v1.6.0.tar.gz
tar zxvf v1.6.0.tar.gz || true # Error in unpacking (symlink README before file README.md)
cd hunspell-1.6.0
ln -s README.md README && autoreconf -vfi
./configure --prefix=$PREFIX && make && make install
cd ..

# UnitTest++
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 ..