File: setup.sh

package info (click to toggle)
grisbi 3.90.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,152 kB
  • sloc: ansic: 133,072; makefile: 1,092; sh: 1,007; xml: 642; python: 124; perl: 82
file content (40 lines) | stat: -rwxr-xr-x 806 bytes parent folder | download
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
#!/bin/bash

if [ "$RUNNER_OS" == "Linux" ]; then
	echo "GNU/Linux"

	sudo apt update
	sudo apt install \
		autoconf \
		automake \
		autopoint \
		build-essential \
		gettext \
		libgoffice-0.10-dev \
		libgsf-1-dev \
		libgtk-3-dev \
		libofx-dev \
		libssl-dev \
		libtool-bin m4 \
		meson
elif [ "$RUNNER_OS" == "Windows" ]; then
	#choco install important_windows_software
	echo "Windows"
elif [ "$RUNNER_OS" == "macOS" ]; then
	echo "macOS"

	# use content of Brewfile file
	brew bundle

	# from brew
	export PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig
	export PATH="$PATH:/usr/local/opt/gettext/bin"

	mkdir m4
	ln -sf /usr/local/opt/gettext/share/aclocal/nls.m4 m4
else
	echo "$RUNNER_OS not supported"
	exit 1
fi