diff options
author | Dugan Chen <thedoogster [at] gmail [dot] com> | 2016-08-29 23:12:17 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-09-03 07:48:57 +0700 |
commit | 12d145876be298d818a38b0e54c9aa902eee90fb (patch) | |
tree | c76141cabfe7e9e523c1cdb6ae7b1cc518552af2 | |
parent | 5b9fb5f3672e0490371445890a6c43565a0beb4e (diff) | |
download | slackbuilds-12d145876be298d818a38b0e54c9aa902eee90fb.tar.gz |
games/SLADE: Updated for version 3.1.1.3.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | games/SLADE/README | 2 | ||||
-rw-r--r-- | games/SLADE/SLADE.SlackBuild | 19 | ||||
-rw-r--r-- | games/SLADE/SLADE.desktop | 10 | ||||
-rw-r--r-- | games/SLADE/SLADE.info | 6 | ||||
-rw-r--r-- | games/SLADE/doinst.sh | 9 |
5 files changed, 36 insertions, 10 deletions
diff --git a/games/SLADE/README b/games/SLADE/README index 216cbecd03..fb14fe9253 100644 --- a/games/SLADE/README +++ b/games/SLADE/README @@ -1,3 +1,5 @@ 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. + +Credit to Arch Linux for the .desktop file. diff --git a/games/SLADE/SLADE.SlackBuild b/games/SLADE/SLADE.SlackBuild index e2081fbed4..047b3f9446 100644 --- a/games/SLADE/SLADE.SlackBuild +++ b/games/SLADE/SLADE.SlackBuild @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=SLADE -VERSION=${VERSION:-3.1.0.5} +VERSION=${VERSION:-3.1.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -74,13 +74,17 @@ cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release .. make + make install DESTDIR=$PKG cd .. -mkdir -p $PKG/usr/bin -install -Dm755 build/slade "$PKG/usr/bin/slade" -install -Dm644 build/slade.pk3 "$PKG/usr/share/slade3/slade.pk3" +mkdir -p $PKG/usr/share/applications +cp $CWD/SLADE.desktop $PKG/usr/share/applications + +mkdir -p $PKG/usr/share/pixmaps +convert dist/res/slade.ico[3] $PKG/usr/share/pixmaps/${PRGNAM}.ico 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 @@ -91,6 +95,7 @@ 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:-tgz} diff --git a/games/SLADE/SLADE.desktop b/games/SLADE/SLADE.desktop new file mode 100644 index 0000000000..3d79f57ea2 --- /dev/null +++ b/games/SLADE/SLADE.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=SLADE +GenericName=Doom editor +Icon=SLADE +Exec=slade %F +Terminal=false +MimeType=application/x-doom-wad;application/x-pak;application/zip;inode/directory; +Categories=GTK;Utility;Archiving; diff --git a/games/SLADE/SLADE.info b/games/SLADE/SLADE.info index f4ba476b75..b181476928 100644 --- a/games/SLADE/SLADE.info +++ b/games/SLADE/SLADE.info @@ -1,8 +1,8 @@ PRGNAM="SLADE" -VERSION="3.1.0.5" +VERSION="3.1.1.3" HOMEPAGE="http://slade.mancubus.net/" -DOWNLOAD="https://github.com/sirjuddington/SLADE/archive/3.1.0.5.tar.gz" -MD5SUM="c21646d102f936528e47bf75119c0701" +DOWNLOAD="https://github.com/sirjuddington/SLADE/archive/3.1.1.3/SLADE-3.1.1.3.tar.gz" +MD5SUM="ed6b9a603e773ce7d6abde08b1e06493" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="wxGTK3 SFML ftgl fluidsynth FreeImage" diff --git a/games/SLADE/doinst.sh b/games/SLADE/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/games/SLADE/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |