diff options
Diffstat (limited to 'games/endless-sky')
-rw-r--r-- | games/endless-sky/endless-sky.SlackBuild | 26 | ||||
-rw-r--r-- | games/endless-sky/endless-sky.info | 8 |
2 files changed, 25 insertions, 9 deletions
diff --git a/games/endless-sky/endless-sky.SlackBuild b/games/endless-sky/endless-sky.SlackBuild index dcc4c3a157..0a7f749c64 100644 --- a/games/endless-sky/endless-sky.SlackBuild +++ b/games/endless-sky/endless-sky.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SlackBuild script for Endless Sky. # Yth | Pont-en-Royans, France | yth@ythogtha.org @@ -20,10 +20,13 @@ # 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=endless-sky -VERSION=${VERSION:-0.9.12} +VERSION=${VERSION:-0.10.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -33,12 +36,19 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} -DOCS="changelog CONTRIBUTING* copyright license* readme* README*" +DOCS="changelog copyright license.txt credits.txt *.md" if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" @@ -49,6 +59,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -72,6 +85,7 @@ find -L . \ sed -i -e 's:share/man:man:' SConstruct +export AR=gcc-ar CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ scons \ @@ -82,6 +96,8 @@ scons \ 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 +sed -i 's#Version=1.5#Version=1.4#;s#SingleMainWindow#X-SingleMainWindow#' $PKG/usr/share/applications/*endless*sky.desktop + find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -95,4 +111,4 @@ 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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/endless-sky/endless-sky.info b/games/endless-sky/endless-sky.info index b34075399d..3e794b19b9 100644 --- a/games/endless-sky/endless-sky.info +++ b/games/endless-sky/endless-sky.info @@ -1,10 +1,10 @@ PRGNAM="endless-sky" -VERSION="0.9.12" +VERSION="0.10.6" HOMEPAGE="http://endless-sky.github.io/" -DOWNLOAD="https://github.com/endless-sky/endless-sky/archive/v0.9.12/endless-sky-0.9.12.tar.gz" -MD5SUM="af4954cab83ece599cfa46bc5a510464" +DOWNLOAD="https://github.com/endless-sky/endless-sky/archive/v0.10.6/endless-sky-0.10.6.tar.gz" +MD5SUM="dcde25d21eeb9763f5a92ca7f77e6181" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="SDL2 OpenAL" +REQUIRES="" MAINTAINER="Yth - Arnaud" EMAIL="yth@ythogtha.org" |