diff options
author | Hunter Sezen <orbea@riseup.net> | 2019-04-27 04:39:22 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-27 04:39:22 +0700 |
commit | 513bdd579271ee972218ad7677f54a2396cfdb3f (patch) | |
tree | edee63128b0ffb2ebc3d3563a2ad15431b246fa1 | |
parent | ad8ed24e625c5d57272b25ca6beee828412ebe1c (diff) |
games/pioneer: Updated for version 20190203.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/pioneer/README | 25 | ||||
-rw-r--r-- | games/pioneer/pioneer.SlackBuild | 78 | ||||
-rw-r--r-- | games/pioneer/pioneer.info | 8 |
3 files changed, 47 insertions, 64 deletions
diff --git a/games/pioneer/README b/games/pioneer/README index a1e0b59768e7e..503019598a82e 100644 --- a/games/pioneer/README +++ b/games/pioneer/README @@ -1,27 +1,22 @@ -Pioneer is a space adventure game set in the Milky Way galaxy at the turn of -the 31st century. +Pioneer is a space adventure game set in the Milky Way galaxy at the +turn of the 31st century. The game is open-ended, and you are free to explore the millions of star -systems in the game. You can land on planets, slingshot past gas giants, and -burn yourself to a crisp flying between binary star systems. You can try your -hand at piracy, make your fortune trading between systems, or do missions for -the various factions fighting for power, freedom or self-determination. +systems in the game. You can land on planets, slingshot past gas giants, +and burn yourself to a crisp flying between binary star systems. You can +try your hand at piracy, make your fortune trading between systems, or +do missions for the various factions fighting for power, freedom or +self-determination. -OpenGL core profile version 3.1 or newer is a runtime dependency, to determine -what version of OpenGL is installed use: +OpenGL core profile version 3.1 or newer is a runtime dependency, to +determine what version of OpenGL is installed use: glxinfo | grep "core profile version" Note: If you have intel or amd GPU with free drivers, it is recommended to install libtxc_dxtn as well. -Pioneer's game data needs around 400M of hard drive space. By default, the -game data is installed in /usr/share/games/pioneer. The SlackBuild allows -choosing an alternate game data directory using the DATADIR option. For -example, to install the data in -/opt/pioneer -- - - DATADIR=/opt ./pioneer.SlackBuild +lua52 is an optional dependency. To build with debugging support use: diff --git a/games/pioneer/pioneer.SlackBuild b/games/pioneer/pioneer.SlackBuild index ab1ca14870d42..ab07afcbcfaff 100644 --- a/games/pioneer/pioneer.SlackBuild +++ b/games/pioneer/pioneer.SlackBuild @@ -1,8 +1,8 @@ #!/bin/sh -# Slackware build script for Pioneer +# Slackware build script for pioneer -# Copyright 2015-2018 Hunter Sezen California, USA +# Copyright 2015-2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=pioneer SRCNAM=$(printf %s $PRGNAM | tr [a-z] [A-Z]) -VERSION=${VERSION:-20180203} +VERSION=${VERSION:-20190203} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -70,56 +70,44 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -if [ "${DEBUG:-no}" != no ]; then - debug="--enable-debug \ - --with-no-optimise \ - --with-fno-inline" +if [ "${DEBUG:=0}" != 0 ]; then + RELEASE=Debug SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0/')" else - debug='--with-strip' + RELEASE=Release fi -# Generate the configure file -./bootstrap - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -PIONEER_DATA_DIR="${DATADIR:-/usr/share/games}/$PRGNAM" \ -./configure \ - --prefix=/usr \ - --bindir=/usr/games \ - $debug \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG - -# Write a desktop file -mkdir -p $PKG/usr/share/applications -cat > $PKG/usr/share/applications/$PRGNAM.desktop <<EOF -[Desktop Entry] -Name=$SRCNAM -Exec=$PRGNAM -Icon=$PRGNAM -Type=Application -Comment=$SRCNAM (space adventure game) -Categories=Game;AdventureGame; -EOF - -# Add missing icons to package -for pngicon in application-icon/pngs/*.png ; do - if [ -f "$pngicon" ]; then - size="$(basename "${pngicon##*-}" .png)" - install -D -m644 "$pngicon" \ - $PKG/usr/share/icons/hicolor/$size/apps/$PRGNAM.png - fi -done -install -D -m644 application-icon/badge-full.svg \ - $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg +GLEW=OFF +LUA=OFF + +pkg-config --exists glew && GLEW=ON +pkg-config --exists lua5.2 && LUA=ON + +# pioneer installs the game data directly to the system if +# using any other directory than /usr/share/pioneer. +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_BINDIR=games \ + -DPIONEER_DATA_DIR=/usr/share/$PRGNAM \ + -DUSE_SYSTEM_LIBGLEW=$GLEW \ + -DUSE_SYSTEM_LIBLUA=$LUA \ + -DCMAKE_BUILD_TYPE=$RELEASE .. + make + make install DESTDIR=$PKG +cd .. # Remove empty .gitignore files find $PKG -name '.gitignore' -exec rm -f {} \; +if [ "$DEBUG" = 0 ]; then + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +fi + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a licenses *.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/pioneer/pioneer.info b/games/pioneer/pioneer.info index abe9c5d950126..8268860a84dac 100644 --- a/games/pioneer/pioneer.info +++ b/games/pioneer/pioneer.info @@ -1,10 +1,10 @@ PRGNAM="pioneer" -VERSION="20180203" +VERSION="20190203" HOMEPAGE="https://pioneerspacesim.net/" -DOWNLOAD="https://github.com/pioneerspacesim/pioneer/archive/20180203/pioneer-20180203.tar.gz" -MD5SUM="fa8d854760c09e32e5fe0a9dfbfd3f5f" +DOWNLOAD="https://github.com/pioneerspacesim/pioneer/archive/20190203/pioneer-20190203.tar.gz" +MD5SUM="3c90e65a937d8741d85ef6b23d8c2c3e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="SDL2_image assimp" MAINTAINER="Hunter Sezen" -EMAIL="orbea@fredslev.dk" +EMAIL="orbea@riseup.net" |