diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-31 16:39:16 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:18:49 +0700 |
commit | 03ce5be87f61c6a045125f1deda2665a4b90b911 (patch) | |
tree | 33e2c4eb03f83e3770829e3d2a59f96177098790 | |
parent | 1e5aead2fbf8c83f8d115acfb12112c49175b648 (diff) |
games/SpaceZero: Strip binary, fix icon & .desktop.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/SpaceZero/SpaceZero.SlackBuild | 14 | ||||
-rw-r--r-- | games/SpaceZero/SpaceZero.desktop | 5 |
2 files changed, 12 insertions, 7 deletions
diff --git a/games/SpaceZero/SpaceZero.SlackBuild b/games/SpaceZero/SpaceZero.SlackBuild index 9b1f34a8d206..5304b78f9bc8 100644 --- a/games/SpaceZero/SpaceZero.SlackBuild +++ b/games/SpaceZero/SpaceZero.SlackBuild @@ -22,6 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220231 bkw: Modified by SlackBuilds.org, BUILD=2: +# - strip the binary. +# - binary in /usr/games. +# - absolute paths in .desktop +# - install the PNG icon as spacezero.png (why was it .svg?) + # 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0. cd $(dirname $0) ; CWD=$(pwd) @@ -29,7 +35,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=SpaceZero SRCNAM=spacezero VERSION=${VERSION:-0.86.00} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -89,18 +95,18 @@ make 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 -mkdir -p $PKG/usr/bin \ +mkdir -p $PKG/usr/games \ $PKG/usr/share/games/$PRGNAM/{locales,sounds} install -D -m0644 dat/locales/* $PKG/usr/share/games/$PRGNAM/locales install -D -m0644 dat/sounds/* $PKG/usr/share/games/$PRGNAM/sounds -install -D -m0755 bin/$SRCNAM $PKG/usr/bin/$SRCNAM +install -s -D -m0755 bin/$SRCNAM $PKG/usr/games/$SRCNAM mkdir -p $PKG/usr/share/applications install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/share/pixmaps/ -install -D -m644 $CWD/$SRCNAM.png $PKG/usr/share/pixmaps/$SRCNAM.svg +install -D -m644 $CWD/$SRCNAM.png $PKG/usr/share/pixmaps/$SRCNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a html/* $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/games/SpaceZero/SpaceZero.desktop b/games/SpaceZero/SpaceZero.desktop index 44c7130a95c2..3854d9e1e9c6 100644 --- a/games/SpaceZero/SpaceZero.desktop +++ b/games/SpaceZero/SpaceZero.desktop @@ -1,9 +1,8 @@ [Desktop Entry] Name=SpaceZero -Name[he]=SpaceZero Comment=A 2D Real Time Strategy space combat game -Exec=spacezero -Icon=spacezero +Exec=/usr/games/spacezero +Icon=/usr/share/pixmaps/spacezero.png Terminal=false Type=Application Categories=Game;StrategyGame; |