diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7db010ccf938 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |