-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
124 lines (113 loc) · 3.79 KB
/
PKGBUILD
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
124
# Merged with official ABS marble PKGBUILD by João, 2024/03/30 (all respective contributors apply herein)
# Maintainer: João Figueiredo & chaotic-aur <[email protected]>
# Contributor: Gustavo Alvarez <[email protected]>
# Contributor: Stefan Husmann <[email protected]>
pkgbase=marble-git
pkgname=(marble-git
marble-common-git
marble-maps-git
marble-qt-git)
pkgver=24.04.70_r13851.gab23c211a
pkgrel=2
pkgdesc='Desktop Globe'
arch=($CARCH)
url="https://github.com/KDE/${pkgbase%-git}"
license=(GPL-2.0-or-later)
makedepends=(git extra-cmake-modules-git gpsd kdoctools5 knewstuff5 kparts5 krunner5 libwlocate phonon-qt5-git protobuf qt5-serialport qt5-tools qt5-webengine shapelib kirigami2-git)
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgbase%-git}
_major_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MAJOR' CMakeLists.txt | cut -d '"' -f2)"
_minor_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MINOR' CMakeLists.txt | cut -d '"' -f2)"
_micro_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MICRO' CMakeLists.txt | cut -d '"' -f2)"
echo "${_major_ver}.${_minor_ver}.${_micro_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
cmake -B build -S ${pkgbase%-git} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_CXX_STANDARD=17 \
-DQT_PLUGINS_DIR=lib/qt/plugins \
-DBUILD_TESTING=OFF \
-DBUILD_TOUCH=ON \
-DBUILD_MARBLE_EXAMPLES=OFF \
-DBUILD_MARBLE_TESTS=OFF \
-DMOBILE=OFF
cmake --build build
}
package_marble-common-git() {
pkgdesc='Common libraries and plugins for Marble'
conflicts=(marble-common)
provides=(marble-common)
depends=(gcc-libs
glibc
phonon-qt5-git
protobuf
qt5-base
qt5-declarative
qt5-location
qt5-svg
qt5-webchannel
qt5-webengine
zlib)
optdepends=('gpsd: GPS based geolocation'
'libwlocate: WLAN based geolocation'
'qt5-serialport: APRS plugin'
'shapelib: SHP plugin')
DESTDIR="$pkgdir" cmake --install build
rm -r "$pkgdir"/usr/share/{config.kcfg,kxmlgui5,metainfo,plasma} \
"$pkgdir"/usr/bin \
"$pkgdir"/usr/lib/qt/{qml,plugins/*.so,plugins/kf5} \
"$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
"$pkgdir"/usr/share/kservices5/{plasma-*,marble_part.desktop} \
"$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
}
package_marble-qt-git() {
pkgdesc+=' (Qt version)'
conflicts=(marble-qt)
provides=(marble-qt)
depends=(gcc-libs
glibc
marble-common-git
qt5-base)
DESTDIR="$pkgdir" cmake --install build/src/apps/marble-qt
}
package_marble-git() {
depends=(gcc-libs
glibc
kconfig5
kconfigwidgets5
kcoreaddons5
kcrash5
ki18n5
kio5
kparts5
kwidgetsaddons5
kxmlgui5
marble-common-git
qt5-base
qt5-declarative)
conflicts=(marble)
provides=(marble)
optdepends=('krunner5: Krunner plugin')
groups=(kde-applications-git
kde-education-git)
DESTDIR="$pkgdir" cmake --install build/src/apps/marble-kde
DESTDIR="$pkgdir" cmake --install build/src/plasma
DESTDIR="$pkgdir" cmake --install build/src/plasmarunner
DESTDIR="$pkgdir" cmake --install build/src/thumbnailer
rm -r "$pkgdir"/usr/share/{icons,doc}
}
package_marble-maps-git() {
pkgdesc='OpenStreetMap Navigation'
conflicts=(marble-maps)
provides=(marble-maps)
depends=(gcc-libs
glibc
kirigami2-git
marble-common-git
qt5-base
qt5-declarative)
DESTDIR="$pkgdir" cmake --install build/src/apps/marble-maps
}