blob: 06d14e5b3a730378fa5bb42dcb1ff4930e3bc3d6 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# Maintainer: acxz <akashpatel2008@yahoo.com>
# Contributor: K. Morton <pryre.dev@outlook.com>
# Contributor: Anselmo L. S. Melo <anselmo.melo@intel.com>
pkgname=qgroundcontrol
pkgver=4.2.8
pkgrel=1
pkgdesc="Micro air vehicle ground control station."
arch=('x86_64')
url="https://github.com/mavlink/qgroundcontrol"
license=('GPL3')
depends=('bzip2'
'dbus'
'flac'
'gst-plugins-base-libs'
'libasyncns'
'libffi'
'libgcrypt'
'libgpg-error'
'libogg'
'libsndfile'
'libsystemd'
'libunwind'
'libx11'
'libxau'
'libxcb'
'libxdmcp'
'libxext'
'lz4'
'orc'
'pcre'
'sdl2'
'xz'
'zlib'
'icu'
'qt5-speech'
'qt5-multimedia'
'qt5-serialport'
'qt5-charts'
'qt5-quickcontrols'
'qt5-quickcontrols2'
'qt5-location'
'qt5-svg'
'qt5-graphicaleffects'
'qt5-tools'
'qt5-wayland'
'qt5-x11extras'
)
makedepends=('git' 'qt5-base' 'patchelf')
source=("${pkgname}-${pkgver}::git+https://github.com/mavlink/qgroundcontrol.git#tag=v${pkgver}"
"${pkgname}-GpsDrivers::git+https://github.com/PX4/GpsDrivers.git"
"${pkgname}-c_library_v2::git+https://github.com/mavlink/c_library_v2.git"
"${pkgname}-android_openssl::git+https://github.com/Auterion/android_openssl.git"
"${pkgname}-gst-plugins-good::git+https://github.com/mavlink/gst-plugins-good.git"
"${pkgname}-xz-embedded::git+https://github.com/Auterion/xz-embedded.git"
"${pkgname}-libevents::git+https://github.com/mavlink/libevents.git"
"${pkgname}-eigen::git+https://gitlab.com/libeigen/eigen.git"
"${pkgname}-qmdnsengine::git+https://github.com/patrickelectric/qmdnsengine.git"
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
prepare() {
cd "$srcdir/${pkgname}-${pkgver}"
git submodule init
git config submodule."src/GPS/Drivers".url "${srcdir}/${pkgname}"-GpsDrivers
git config submodule."libs/mavlink/include/mavlink/v2.0".url "${srcdir}/${pkgname}"-c_library_v2
git config submodule."libs/OpenSSL/android_openssl".url "${srcdir}/${pkgname}"-android_openssl
git config submodule."libs/qmlglsink/gst-plugins-good".url "${srcdir}/${pkgname}"-gst-plugins-good
git config submodule."libs/xz-embedded".url "${srcdir}/${pkgname}"-xz-embedded
git config submodule."libs/libevents/libevents".url "${srcdir}/${pkgname}"-libevents
git config submodule."libs/eigen".url "${srcdir}/${pkgname}"-eigen
git config submodule."libs/qmdnsengine".url "${srcdir}/${pkgname}"-qmdnsengine
git -c protocol.file.allow=always submodule update --init --recursive
}
build() {
mkdir -p "${srcdir}/${pkgname}-${pkgver}/build"
cd "$srcdir/${pkgname}-${pkgver}/build"
qmake ..
make
}
package() {
mkdir -p "${pkgdir}/opt" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/applications"
cp -r "${srcdir}/${pkgname}-${pkgver}/build/staging" "${pkgdir}/opt/${pkgname}"
cp "${srcdir}/${pkgname}-${pkgver}/resources/icons/qgroundcontrol.png" "${pkgdir}/opt/${pkgname}"
cp "${srcdir}/${pkgname}-${pkgver}/deploy/qgroundcontrol-start.sh" "${pkgdir}/opt/${pkgname}"
# Use our own desktop file and remove the default one
echo "[Desktop Entry]
Type=Application
Name=QGroundControl Release
Comment=Ground control for unmanned vehicles
Path=/opt/${pkgname}/
Exec=/usr/bin/${pkgname}
Icon=/opt/${pkgname}/qgroundcontrol.png
Terminal=false
Categories=Qt;Utility;" > "$srcdir/${pkgname}.desktop"
rm "${pkgdir}/opt/${pkgname}/${pkgname}.desktop"
cp "${srcdir}/${pkgname}.desktop" "${pkgdir}/opt/${pkgname}"
ln -s "/opt/${pkgname}/QGroundControl" "${pkgdir}/usr/bin/${pkgname}"
ln -s "/opt/${pkgname}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
# vim:set ts=2 sw=2 et:
|