PKGBUILD 1.29 KB
Newer Older
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
1
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/kdeedu-kstars/
Phil's avatar
Phil committed
2

Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
3
pkgname=kstars
Jeff Huang's avatar
Jeff Huang committed
4
pkgver=3.4.3
Jeff Huang's avatar
Jeff Huang committed
5
pkgrel=1
Jeff Huang's avatar
Jeff Huang committed
6
epoch=1
7
pkgdesc="Desktop planetarium"
Jeff Huang's avatar
Jeff Huang committed
8
url="https://kde.org/applications/education/kstars/"
Manuel's avatar
Manuel committed
9
arch=('x86_64')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
10 11
screenshot='https://www.kde.org/images/screenshots/kstars.png'
license=('GPL' 'LGPL' 'FDL')
Jeff Huang's avatar
Jeff Huang committed
12
depends=('wcslib' 'libraw' 'kplotting' 'knewstuff' 'knotifyconfig' 'qt5-datavis3d' 'libindi' 'qt5-quickcontrols2'
13
         'qt5-websockets' 'qtkeychain' 'breeze-icons' 'hicolor-icon-theme')
14
makedepends=('extra-cmake-modules' 'python3' 'kdoctools' 'eigen3' 'xplanet')
Jeff Huang's avatar
Jeff Huang committed
15
optdepends=('xplanet: XPlanet support')
16
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdeedu')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
17 18
replaces=('kdeedu-kstars')
conflicts=('kdeedu-kstars')
Jeff Huang's avatar
Jeff Huang committed
19
options=('debug')
Jeff Huang's avatar
Jeff Huang committed
20
source=("https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
Jeff Huang's avatar
Jeff Huang committed
21
sha256sums=('c81119a85e9265991dd0fbfafdc6ba797bf3bedce64f4d5260511bafccebbe48'
Jeff Huang's avatar
Jeff Huang committed
22 23
            'SKIP')
validpgpkeys=(259D9FCEE9175351965633696D9CE2AEE028C4F3) # Jasem Mutlaq <mutlaqja@ikarustech.com>
Phil's avatar
Phil committed
24

Fabian Kosmale's avatar
Fabian Kosmale committed
25
prepare() {
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
26
  mkdir -p build
Fabian Kosmale's avatar
Fabian Kosmale committed
27 28
}

philm's avatar
philm committed
29
build() {
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
30
  cd build
AlmAck's avatar
AlmAck committed
31 32 33 34 35
  cmake ../$pkgname-$pkgver \
    -DBUILD_TESTING=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DOpenGL_GL_PREFERENCE=GLVND
Phil's avatar
Phil committed
36 37
}

philm's avatar
philm committed
38
package() {
39 40
  cd build
  make DESTDIR=${pkgdir} install
Phil's avatar
Phil committed
41
}