blob: 7db010ccf938d177f40f8171bf5ffc802eec7de5 (
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
|
_pkgname=skytechx
pkgname=skytechx-git
pkgver=r390.31d588a
pkgrel=1
pkgdesc="SkytechX is free astronomical planetarium for rendering real objects (stars, planets, comets etc.) on the map"
arch=(x86_64)
url="https://github.com/tstibor/skytechx"
license=(GPL)
makedepends=('qt5-multimedia' 'qt5-script' 'qt5-charts')
source=("git+https://github.com/tstibor/skytechx.git")
sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${srcdir}
[[ -d build ]] && rm -rf build
cmake \
-S "skytechx" \
-B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_STATIC=NO
cmake --build build
}
package() {
cd "${srcdir}/build"
DESTDIR="$pkgdir" cmake -P cmake_install.cmake
}
|