blob: ef1b6af7d0725d762992684f1ac55260fe0ab587 (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
pkgname=stellarium
pkgver=24.4
pkgrel=4
pkgdesc="Software which renders realistic skies in real time with OpenGL"
arch=(x86_64)
url="https://${pkgname}.org"
license=(GPL-2.0-or-later)
depends=(nlopt libpng libglvnd freetype2 openssl gpsd calcmysky qt6-charts qt6-serialport
qt6-multimedia qt6-positioning qt6-webengine qxlsx libindi)
makedepends=(cmake ninja mesa qt6-tools) # doxygen graphviz
optdepends=('man-db: manual pages for stellarium')
source=(https://github.com/Stellarium/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc}
libindi.patch::https://github.com/Stellarium/${pkgname}/pull/4025.patch)
validpgpkeys=('79151C2E6351E7278DA1A730BF38D4D02A328DFF') # Alexander Wolf <alex.v.wolf@gmail.com>
md5sums=('eabf3b7357a40073245f29faa5ee5c83'
'SKIP'
'0dbfbe6da6cf39a950c44ada47d6c828')
sha256sums=('433bb8a0380313e6d9e4caf62395b724f4d74262c8aae426a0fe1a5e61a29cbb'
'SKIP'
'2f7c4b56ebd02053b970417294693db06841822116d3af613f9643fb87abb3bc')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ../libindi.patch
}
build() {
PATH="/usr/bin/core_perl/:$PATH"
cmake \
-S ${pkgname}-${pkgver} \
-B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_C_EXTENSIONS=Yes \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_C_STANDARD=17 \
-DCMAKE_CXX_EXTENSIONS=Yes \
-DENABLE_QT6=1 \
-DENABLE_SHOWMYSKY=ON \
-DENABLE_TESTING=0 \
-DENABLE_XLSX=1 \
-DPREFER_SYSTEM_INDILIB=Yes \
-Wno-dev
cmake --build build --target all
}
package() {
DESTDIR="${pkgdir}" cmake --build build --target install
install -Dm 644 ${pkgname}-${pkgver}/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
find "${pkgdir}" -type d -empty -delete
}
|