diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2017-01-30 23:45:07 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-04 06:59:30 +0700 |
commit | 27e76df0fcb921668a6bf7fdc0b53f889042d3a8 (patch) | |
tree | cb65ae0ae4ef17f948711c51453e856bb566f0c4 /games/blobby2/blobby2.SlackBuild | |
parent | 4f0fe3167d21def5f426acc005d0363dc52ae546 (diff) | |
download | slackbuilds-27e76df0fcb921668a6bf7fdc0b53f889042d3a8.tar.gz |
games/blobby2: Updated for version 1.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/blobby2/blobby2.SlackBuild')
-rw-r--r-- | games/blobby2/blobby2.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/games/blobby2/blobby2.SlackBuild b/games/blobby2/blobby2.SlackBuild index c525c2a51d..a73d3c483f 100644 --- a/games/blobby2/blobby2.SlackBuild +++ b/games/blobby2/blobby2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for blobby2 -# Copyright 2010-2013 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2010-2017 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=blobby2 -VERSION=1.0rc3 +VERSION=1.0 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" @@ -69,6 +69,13 @@ 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 {} \; +# upstream revision 1542 +patch -p2 -i $CWD/ostream-include.patch + +# fix paths - thanks to Arch Linux +sed -i "s|data|/usr/share/blobby|g" src/main.cpp +sed -i "s|file\(filename\)|file(\"/usr/share/blobby\" + filename|g" src/main.cpp + mkdir -p build cd build cmake \ @@ -81,6 +88,8 @@ cd build make install DESTDIR=$PKG cd - +install -m 0644 data/Icon.bmp ${PKG}/usr/share/blobby/Icon.bmp + mkdir -p $PKG/usr/share/{applications,pixmaps} install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/ |