diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-07 16:40:18 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:19 +0700 |
commit | 72af43dcbf96e81a941e115eb5c8226544e79e56 (patch) | |
tree | bdeb3f3a8c3c8e8d92067b6b68304734f1ca5b70 /games/oblige/oblige.SlackBuild | |
parent | 90f3286e40dea6c71a70be01d5c5f5227181c044 (diff) |
games/oblige: Fix .desktop file.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/oblige/oblige.SlackBuild')
-rw-r--r-- | games/oblige/oblige.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/games/oblige/oblige.SlackBuild b/games/oblige/oblige.SlackBuild index 1fbe59cbdfa0d..cbb0ef26b04f7 100644 --- a/games/oblige/oblige.SlackBuild +++ b/games/oblige/oblige.SlackBuild @@ -6,6 +6,8 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230107 bkw: BUILD=3, fix line endings in .desktop file. + # 20211020 bkw: BUILD=2 # - fix -current build. # - binary in /usr/games. @@ -46,7 +48,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=oblige VERSION=${VERSION:-7.70} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -140,10 +142,12 @@ gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz # Starting with 6.20, upstream includes a .desktop and icon. # The icon's fugly though, see below. +# 20230107 bkw: fix stoopid \r\n line endings. mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications -sed "s,Exec=,Exec=/usr/games/," \ - < misc/$PRGNAM.desktop \ - > $PKG/usr/share/applications/$PRGNAM.desktop +sed -e "s,Exec=,Exec=/usr/games/," \ + -e 's,\r,,g' \ + < misc/$PRGNAM.desktop \ + > $PKG/usr/share/applications/$PRGNAM.desktop # icons made from upstream's icon, by turning the background transparent. for i in $CWD/icons/*.png; do |