games/SLADE: Updated for version 3.1.11, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
ffa5ded121
commit
1af65dc144
|
@ -1,5 +1,5 @@
|
||||||
SLADE is a modern editor for DOOM-engine based games and source ports. It has
|
SLADE (DOOM editor)
|
||||||
the ability to view, modify and write many different game-specific formats, and
|
|
||||||
even convert between some of them.
|
|
||||||
|
|
||||||
Credit to Arch Linux for the .desktop file.
|
SLADE is a modern editor for DOOM-engine based games and source ports. It
|
||||||
|
has the ability to view, modify and write many different game-specific
|
||||||
|
formats, and even convert between some of them.
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# Slackware build script for SLADE
|
# Slackware build script for SLADE
|
||||||
|
|
||||||
# Copyright 2015 Dugan Chen Canada
|
# Copyright 2015 Dugan Chen Canada
|
||||||
|
# Copyright 2020 B. Watson
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -22,8 +23,15 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# 20200416 bkw:
|
||||||
|
# - take over maintenance
|
||||||
|
# - update for v3.1.11
|
||||||
|
# - binary in /usr/games
|
||||||
|
# - install icon in right place, symlink to old location
|
||||||
|
# - get rid of our .desktop file (upstream provides one now)
|
||||||
|
|
||||||
PRGNAM=SLADE
|
PRGNAM=SLADE
|
||||||
VERSION=${VERSION:-3.1.1.5}
|
VERSION=${VERSION:-3.1.11}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -60,37 +68,51 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
|
||||||
|
|
||||||
mkdir -p build
|
# 20200416 bkw: game binaries do not belong in /usr/bin.
|
||||||
|
sed -i 's,\<bin\>,games,' src/CMakeLists.txt
|
||||||
|
|
||||||
|
# 20200416 bkw: don't depend on unstable /usr/bin/wx-config symlink.
|
||||||
|
# stupid thing insists on searching for wx-config in PATH, instead of
|
||||||
|
# allowing us to explicitly give a full path and name for the script, so:
|
||||||
|
WXCONF=/usr/lib$LIBDIRSUFFIX/wx/config/gtk2-unicode-3.0
|
||||||
|
WXTMP=$( pwd )/wxtmp
|
||||||
|
mkdir -p $WXTMP
|
||||||
|
ln -s $WXCONF $WXTMP/wx-config
|
||||||
|
|
||||||
|
# 20200416 bkw: our wxGTK3 package doesn't include wxWebView, and it's built
|
||||||
|
# with gtk+-2, not 3. This stuff isn't autodetected so we help it along.
|
||||||
cd build
|
cd build
|
||||||
cmake \
|
cmake \
|
||||||
|
-DWITH_WXPATH=$WXTMP \
|
||||||
|
-DNO_WEBVIEW=ON \
|
||||||
|
-DWX_GTK3=OFF \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release ..
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install/strip DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/applications
|
mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps \
|
||||||
cp $CWD/SLADE.desktop $PKG/usr/share/applications
|
$PKG/usr/share/pixmaps
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/pixmaps
|
# 20200416 bkw: don't want to hardcode the icon name here.
|
||||||
convert dist/res/slade.ico[3] $PKG/usr/share/pixmaps/${PRGNAM}.ico
|
cd $PKG/usr/share/icons
|
||||||
|
icon="$( /bin/ls *$PRGNAM.png | head -1 )"
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
mv $icon hicolor/128x128/apps
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
ln -s hicolor/128x128/apps/$icon .
|
||||||
|
ln -s ../icons/hicolor/128x128/apps/$icon ../pixmaps/$PRGNAM.png
|
||||||
|
cd -
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a README* *.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a README* gpl-2.0.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="SLADE"
|
PRGNAM="SLADE"
|
||||||
VERSION="3.1.1.5"
|
VERSION="3.1.11"
|
||||||
HOMEPAGE="http://slade.mancubus.net/"
|
HOMEPAGE="http://slade.mancubus.net/"
|
||||||
DOWNLOAD="https://github.com/sirjuddington/SLADE/archive/3.1.1.5/SLADE-3.1.1.5.tar.gz"
|
DOWNLOAD="https://github.com/sirjuddington/SLADE/archive/3.1.11/SLADE-3.1.11.tar.gz"
|
||||||
MD5SUM="ce693b861ae962878370be80c1a3284f"
|
MD5SUM="41f7592730bb88daf3b5b957bc19dae7"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="wxGTK3 SFML ftgl fluidsynth FreeImage"
|
REQUIRES="wxGTK3 SFML ftgl fluidsynth FreeImage"
|
||||||
MAINTAINER="Dugan Chen"
|
MAINTAINER="B. Watson"
|
||||||
EMAIL="thedoogster [at] gmail [dot] com"
|
EMAIL="yalhcru@gmail.com"
|
||||||
|
|
Loading…
Reference in New Issue