aboutsummaryrefslogtreecommitdiff
path: root/academic/gaiasky
diff options
context:
space:
mode:
authorGiancarlo Dessì <slack@giand.it>2023-04-08 00:48:23 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-04-08 09:16:28 +0700
commitfca294ec70b70a8d7ef9b994d33ee684066809af (patch)
tree53d6aa49af10c1ad3eee6d16da4e016d5463181a /academic/gaiasky
parent3b13add7e1c22637290a656ac9ec1a0b0b59df6b (diff)
academic/gaiasky: Added (3D universe simulator for desktop and VR)
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/gaiasky')
-rw-r--r--academic/gaiasky/README37
-rw-r--r--academic/gaiasky/README.SBo43
-rw-r--r--academic/gaiasky/doinst.sh7
-rw-r--r--academic/gaiasky/gaiasky.SlackBuild133
-rw-r--r--academic/gaiasky/gaiasky.info10
-rw-r--r--academic/gaiasky/slack-desc19
6 files changed, 249 insertions, 0 deletions
diff --git a/academic/gaiasky/README b/academic/gaiasky/README
new file mode 100644
index 0000000000000..ba6a28970ac51
--- /dev/null
+++ b/academic/gaiasky/README
@@ -0,0 +1,37 @@
+Gaia Sky is a real-time, 3D, astronomy visualisation software free
+and open source that provides a number of features that allows people
+to observe and study the space in Virtual Reality. This slackbuild
+install the prebuilt package released for Ubuntu.
+
+Gaia Sky is developed in the framework of ESA's Gaia mission to chart
+about 1 billion stars of our Galaxy in the Gaia group of the
+Astronomisches Rechen-Institut (ZAH, Universität Heidelberg).
+
+Hardware requirements: CPU 4 core or higher, GPU with 1 GB RAM with
+support for OpenGL (at least 3.2) and GLSL 3.3, memory with 2-6 GB RAM
+depending on catalog, and at least 1 GB of free disk space depending
+on datasets.
+
+*** WARNING ***
+1. Datasets
+Gaia Sky requires pre-packed datasets (Gaia eDR3, NBG, SDSS, OCDR2,
+ecc.) provided by the project, but can be used with other datasets in
+VOTable, FITS, CSV and other formats (STIL).
+When Gaia Sky starts for the first time, the application searches the
+default dataset in ~/.local/share/gaiasky/data. If any dataset is not
+found, Gaia Sky launches the Download Manager, a graphic interface
+that allows to users to download the default dataset required. The
+repository provides also other optional datasets which improve the
+features of Gaia Sky (some datasets have very large size). For further
+information, please read the README.SBo file.
+
+2. How to start Gaia Sky
+A Desktop entry which launches the GUI is provided with the
+installation (in Education > Science), but Gaia Sky can be started by
+command-line if you want apply some flags. About this mode please read
+the README.SBo file.
+
+3. Virtual Reality
+The VR rendering is still in alpha mode: it is uncomplete and may
+cause issues depending on the configuration.
+
diff --git a/academic/gaiasky/README.SBo b/academic/gaiasky/README.SBo
new file mode 100644
index 0000000000000..ce5288a0de016
--- /dev/null
+++ b/academic/gaiasky/README.SBo
@@ -0,0 +1,43 @@
+Further information
+
+1. About datasets
+The Graphic Interface of the Download Manager starts if no datasets
+are found in ~/.local/gaiasky/data, otherwise Gaia Sky won't start.
+
+The datasets available for download are the following:
+
+Data Packs:
+- Basic data pack (REQUIRED): size 88,5 MB. It is the default-data
+ with 2,573 objects (Solar System objects as planets, satellites,
+ asteroids, eccetera, Milk Way, Constellations, orbits, ecc.)
+
+Texture Packs:
+- High resolution textures: size 258 MB.
+
+Gaia stars catalogs:
+- Gaia DR3 default: size 1 GB
+- Gaia DR3 small: size 560 MB
+- Gaia DR3 medium: size 3,3 GB
+- Gaia DR3 large: size 8 GB
+- Gaia DR3 very large: size 30 GB
+- Gaia DR3 extra large: size 45 GB
+- Gaia DR3 bright: 566 MB
+
+These datasets may be downloaded also manually through a web browser:
+the Download Manager window provides a link (Manual Download) which
+opens the default web browser at the address of the repository.
+
+Users can install also own or third part datasets. About this please
+refer to the documentation on line.
+
+2. Start with a command-line from a console
+This is needed if you want to apply some flags. This is needed if you
+want to launch Gaia Sky in Virtual Reality mode: you have to open a
+terminal and digit the command
+
+ $ gaiasky -vr (or --openvr)
+
+Other available flags may be listed with the command
+
+ $ gaiasky -h
+
diff --git a/academic/gaiasky/doinst.sh b/academic/gaiasky/doinst.sh
new file mode 100644
index 0000000000000..22c4ffeb73d39
--- /dev/null
+++ b/academic/gaiasky/doinst.sh
@@ -0,0 +1,7 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /sbin/setcap ]; then
+ /sbin/setcap cap_ipc_lock,cap_sys_nice=ep /opt/gaiasky/gaiasky
+fi
diff --git a/academic/gaiasky/gaiasky.SlackBuild b/academic/gaiasky/gaiasky.SlackBuild
new file mode 100644
index 0000000000000..14bc17346b43a
--- /dev/null
+++ b/academic/gaiasky/gaiasky.SlackBuild
@@ -0,0 +1,133 @@
+#!/bin/bash
+
+# Slackware build script for gaiasky
+
+# Copyright 2023 Giancarlo Dessì, Cagliari, IT
+# Based on Booktab.SlackBuild written by Matteo Bernardini
+# at https://ponce.cc/slackware/testing/Booktab/
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=gaiasky
+VERSION=${VERSION:-"3.4.2"}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+SRCVERSION=$( echo ${VERSION//./_} )
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "x86_64" ]; then
+ SRCARCH="x86-64"
+ PKGARCH="$ARCH"
+elif [ "$ARCH" = "arm" ]; then
+ printf "\n$ARCH is unsupported for gaiasky...\n\n"
+ exit 1
+else
+ SRCARCH="x86"
+ PKGARCH="i586"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+rm -rf $TMP/$PRGNAM-$VERSION
+mkdir $TMP/$PRGNAM-$VERSION
+
+#Extract the application from the Ubuntu package
+ar xv $CWD/${PRGNAM}_linux_$SRCVERSION.deb data.tar.gz
+tar xvf data.tar.gz -C $TMP/$PRGNAM-$VERSION
+rm -f data.tar.gz
+
+cd $TMP/$PRGNAM-$VERSION
+
+# patch the application entry: as is provided it won't work
+# in Slackware/KDE
+patch -p0 << 'EOF'
+--- opt/gaiasky/gaiasky.desktop 2023-04-05 16:00:00.000000000 +0200
++++ opt/gaiasky/gaiasky.desktop 2023-04-05 16:00:01.000000000 +0200
+@@ -3,6 +3,8 @@
+ Name=Gaia Sky
+ Comment=3D universe simulator for desktop and VR with support for more than a billion objects
+-Exec=gaiasky
++Exec=/opt/gaiasky/gaiasky
++GenericName=Desktop 3D universe viewer
+ Icon=/opt/gaiasky/gs_icon.svg
+ Terminal=false
+-Categories=Science;
++Categories=Education;Science;Astronomy;
++StartupNotify=true
+
+EOF
+
+chown -R root:root .
+
+# The application will be installed in /opt but some files will be moved or
+# linked in /usr according to the standard of Slackware installations
+mkdir -p usr/share/applications
+mkdir -p usr/doc/$PRGNAM-$VERSION
+mkdir -p usr/bin
+
+# link the executable in /usr/bin
+cd usr/bin
+ln -s ../../opt/gaiasky/gaiasky gaiasky
+cd ../../
+
+# link the application desktop entry
+cp -a opt/gaiasky/gaiasky.desktop usr/share/applications/gaiasky.desktop
+
+# move the entire tree in package-gaiasky
+cp -a * $PKG/
+
+# strip ELF objects
+find $PKG/opt/gaiasky -type f -print0 | \
+ xargs -0 file -m /etc/file/magic/elf | \
+ grep 'ELF.*dynamic.*not stripped' | \
+ cut -d: -f1 | xargs strip
+
+
+# move some documentation files in /usr/doc/gaiasky-x.y.z
+mv opt/gaiasky/*.md opt/gaiasky/releasenotes.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/academic/gaiasky/gaiasky.info b/academic/gaiasky/gaiasky.info
new file mode 100644
index 0000000000000..d63673e8bf370
--- /dev/null
+++ b/academic/gaiasky/gaiasky.info
@@ -0,0 +1,10 @@
+PRGNAM="gaiasky"
+VERSION="3.4.2"
+HOMEPAGE="https://zah.uni-heidelberg.de/gaia/outreach/gaiasky"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://gaia.ari.uni-heidelberg.de/gaiasky/releases/3.4.2.041928e7c/gaiasky_linux_3_4_2.deb"
+MD5SUM_x86_64="076b18567ab40503a39a8a2ba5bacb44"
+REQUIRES="zulu-openjdk17"
+MAINTAINER="Giancarlo Dessì"
+EMAIL="slack@giand.it"
diff --git a/academic/gaiasky/slack-desc b/academic/gaiasky/slack-desc
new file mode 100644
index 0000000000000..cc7ca93657a65
--- /dev/null
+++ b/academic/gaiasky/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+gaiasky: gaiasky (3D universe simulator for desktop and VR)
+gaiasky:
+gaiasky: Gaia Sky is a real-time, 3D, astronomy visualisation software
+gaiasky: developed in the framework of ESA's Gaia mission to chart about
+gaiasky: 1 billion stars of our Galaxy in the Gaia group of the
+gaiasky: Astronomisches Rechen-Institut (ZAH, Universitat Heidelberg).
+gaiasky:
+gaiasky:
+gaiasky: https://zah.uni-heidelberg.de/gaia/outreach/gaiasky
+gaiasky:
+gaiasky: