aboutsummaryrefslogtreecommitdiff
path: root/games/hexglass/hexglass.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-20 16:10:51 -0500
committerRobby Workman <rworkman@slackbuilds.org>2022-02-21 14:34:27 -0600
commit7b82bb4885d2c39f7a2bf24b3a64356ad0ad3ec1 (patch)
treec3749d83b21a0a8a705160a2bba847054277b762 /games/hexglass/hexglass.SlackBuild
parent04cc49c13f6801f91c340c6be5ac62e519c49b1f (diff)
games/hexglass: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/hexglass/hexglass.SlackBuild')
-rw-r--r--games/hexglass/hexglass.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/games/hexglass/hexglass.SlackBuild b/games/hexglass/hexglass.SlackBuild
index f4b45dd15723..100e4c7a8e20 100644
--- a/games/hexglass/hexglass.SlackBuild
+++ b/games/hexglass/hexglass.SlackBuild
@@ -22,11 +22,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220220 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - fix github filename mess. upstream includes the project name as the
+# first part of the tag name, so the correct name really is:
+# hexglass-hexglass-1.2.2.tar.gz.
+# - add qt4 dep, since it doesn't build with qt5.
+# - install binary in /usr/games
+# - absolute paths in .desktop
+# - icon was huge (512x512), resize to 64x64.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hexglass
VERSION=${VERSION:-1.2.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +47,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,31 +81,27 @@ cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# create Makefile
-qmake
+qmake-qt4
# fix path installation
-sed -i 's/INSTALL\_ROOT)\/usr\/lib64\/qt\/bin/INSTALL\_ROOT)\/usr\/bin/g' Makefile
+sed -i 's/INSTALL\_ROOT)\/usr\/lib64\/qt4\/bin/INSTALL\_ROOT)\/usr\/games/g' Makefile
make
make INSTALL_ROOT=$PKG install
-
-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
+strip $PKG/usr/games/$PRGNAM
# create .desktop file for this script
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
# convert .xpm logo image to .png file
-convert resources/logo512x512.xpm $PRGNAM.png
-
mkdir -p $PKG/usr/share/pixmaps/
-install -D -m644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+convert -resize 64x64 resources/logo512x512.xpm $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES COPYING README $PKG/usr/doc/$PRGNAM-$VERSION