summaryrefslogtreecommitdiffstats
path: root/tools/mingw-rpm-setup.sh
blob: 602c0fbc1aa3c3fc992cfa0733e6e9986a43ebd4 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# Setup development environment on Fedora Linux for MinGW-w64
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# We drag in tools that might not be needed by all users; it's easier
# that way.
#

function print_usage() {
	printf "\\nUtility to setup a Fedora MinGW-w64 system for Wireshark development.\\n"
	printf "The basic usage installs the needed software\\n\\n"
	printf "Usage: %s [...other options...]\\n" "$0"
	printf "\\t--install-all: install everything\\n"
	printf "\\t[other]: other options are passed as-is to pacman\\n"
	printf "\\tPass --noconfirm to bypass any \"are you sure?\" messages.\\n"
}

OPTIONS=
for arg; do
	case $arg in
		--help)
			print_usage
			exit 0
			;;
		--install-all)
			;;
		*)
			OPTIONS="$OPTIONS $arg"
			;;
	esac
done

BASIC_LIST="mingw64-gcc \
	mingw64-gcc-c++ \
	mingw64-glib2 \
	mingw64-libgcrypt \
	mingw64-c-ares \
	mingw64-qt6-qtbase \
	mingw64-qt6-qt5compat \
	mingw64-qt6-qtmultimedia \
	mingw64-qt6-qttools \
	mingw64-speexdsp \
	mingw32-nsis \
	mingw64-nsis \
	mingw64-gnutls \
	mingw64-brotli \
	mingw64-minizip \
	mingw64-opus \
	mingw64-wpcap \
	mingw64-libxml2 \
	ninja-build \
	flex \
	lemon \
	asciidoctor \
	libxslt \
	docbook-style-xsl \
	ccache \
	git \
	patch \
	cmake
	cmake-rpm-macros"

ACTUAL_LIST=$BASIC_LIST

dnf install $ACTUAL_LIST $OPTIONS