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 /games/SLADE/SLADE.SlackBuild | |
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>
Diffstat (limited to 'games/SLADE/SLADE.SlackBuild')
-rw-r--r-- | games/SLADE/SLADE.SlackBuild | 19 |
1 files changed, 12 insertions, 7 deletions
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} |