diff options
author | Mr.Smith1974 | 2023-08-02 10:37:32 +0300 |
---|---|---|
committer | Mr.Smith1974 | 2023-08-02 10:37:32 +0300 |
commit | e03670a021d6bf73bff2d50fe89dc589afaa76e4 (patch) | |
tree | 7242d2a33f51f742a7208c828e43fbab543b92b7 /PKGBUILD | |
download | aur-e03670a021d6bf73bff2d50fe89dc589afaa76e4.tar.gz |
Initial build
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 +} |