mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
games/solarus-quest-editor: Patched to add a png logo.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
00fb184b99
commit
5ba3fe7ae8
2 changed files with 6 additions and 13 deletions
BIN
games/solarus-quest-editor/pixmaps.patch.gz
Normal file
BIN
games/solarus-quest-editor/pixmaps.patch.gz
Normal file
Binary file not shown.
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for solarus-quest-editor
|
||||
|
||||
# Copyright 2015-2017 Hunter Sezen California, USA
|
||||
# Copyright 2015-2018 Hunter Sezen California, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=solarus-quest-editor
|
||||
VERSION=${VERSION:-1.5.3}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -73,6 +73,10 @@ find -L . \
|
|||
# https://github.com/solarus-games/solarus-quest-editor/commit/6bb12e5e6029652e471054b71487ad9777b5d3d7
|
||||
zcat $CWD/assets.patch | patch -p1
|
||||
|
||||
# Install a png logo to pixmaps
|
||||
# https://github.com/solarus-games/solarus-quest-editor/pull/298
|
||||
zcat $CWD/pixmaps.patch | patch -p1
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
|
@ -86,20 +90,9 @@ cd build
|
|||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
install -Dm0644 images/logo/sqe-logo.png $PKG/usr/share/pixmaps/sqe-logo.png
|
||||
install -Dm0644 resources/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
|
||||
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
|
||||
|
||||
# Add missing icons to package
|
||||
for pngicon in images/icon/*.png ; do
|
||||
if [ -f $pngicon ]; then
|
||||
size=$(basename $pngicon .png | tr -dc 0-9)
|
||||
install -Dm0644 $pngicon $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$PRGNAM.png
|
||||
fi
|
||||
done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a changelog.txt license*.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
|
Loading…
Reference in a new issue