diff options
Diffstat (limited to 'development/tiled/tiled.SlackBuild')
-rw-r--r-- | development/tiled/tiled.SlackBuild | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/development/tiled/tiled.SlackBuild b/development/tiled/tiled.SlackBuild index 9e21048793..f4bd1709fa 100644 --- a/development/tiled/tiled.SlackBuild +++ b/development/tiled/tiled.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tiled -VERSION=${VERSION:-1.8.5} +VERSION=${VERSION:-1.10.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -61,6 +61,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="" @@ -81,16 +84,6 @@ 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 {} \; -# patch to force the right library path to be used for libtiled plugins directory -# it was always using ../lib/tiled/plugins/ even on x86_64 where the plugins were -# stored by the installer itself on $LIBDIR/tiled/plugins/ -# This patch is therefore only useful when $LIBDIR=/usr/lib64/ -# Compilation itself would break as linking was done with ../lib/ even when the libs -# are stored on ../lib64/ -if [ "$ARCH" = "x86_64" ]; then - patch -p0 < $CWD/tiled_lib64.patch -fi - qbs setup-qt /usr/bin/qmake-qt5 qt5 CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -101,6 +94,9 @@ qbs install --install-root $PKG 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 +[ ! -d $PKG/usr/lib$LIBDIRSUFFIX ] && mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX + + mv $PKG/usr/share/man $PKG/usr/man find $PKG/usr/man -type f -exec gzip -9 {} \; |