summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 834054cc6ba5ac790d10daafee1d125f72ee0a25 (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
# Maintainer Evgeniy Dombek <edombek@yandex.ru>

pkgname=kstars-git
pkgver=d03990305
pkgrel=2
epoch=1
pkgdesc='Desktop Planetarium'
url='https://kde.org/applications/education/kstars/'
arch=(x86_64)
license=(GPL LGPL FDL)
depends=(stellarsolver libraw kplotting5 knewstuff5 knotifyconfig5 qt5-datavis3d qt5-quickcontrols qt5-websockets qtkeychain
         libindi breeze-icons hicolor-icon-theme)
makedepends=(extra-cmake-modules kdoctools5 eigen)
optdepends=('xplanet: XPlanet support')
source=(git+https://github.com/KDE/kstars)
md5sums=('SKIP')
provides=(kstars)
conflicts=(kstars)

pkgver() {
  cd kstars
  #git describe --long --tags | sed 's/-/./;s/-/./'
  git rev-parse --short HEAD
}


build() {
  cmake -B build -S kstars \
    -DBUILD_TESTING=OFF \
    -DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects" \
    -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects"
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}