mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
games/oblige: Fix .desktop file.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
90f3286e40
commit
72af43dcbf
2 changed files with 9 additions and 5 deletions
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
# 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
|
# 20211020 bkw: BUILD=2
|
||||||
# - fix -current build.
|
# - fix -current build.
|
||||||
# - binary in /usr/games.
|
# - binary in /usr/games.
|
||||||
|
@ -46,7 +48,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=oblige
|
PRGNAM=oblige
|
||||||
VERSION=${VERSION:-7.70}
|
VERSION=${VERSION:-7.70}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-3}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
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.
|
# Starting with 6.20, upstream includes a .desktop and icon.
|
||||||
# The icon's fugly though, see below.
|
# 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
|
mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
|
||||||
sed "s,Exec=,Exec=/usr/games/," \
|
sed -e "s,Exec=,Exec=/usr/games/," \
|
||||||
< misc/$PRGNAM.desktop \
|
-e 's,\r,,g' \
|
||||||
> $PKG/usr/share/applications/$PRGNAM.desktop
|
< misc/$PRGNAM.desktop \
|
||||||
|
> $PKG/usr/share/applications/$PRGNAM.desktop
|
||||||
|
|
||||||
# icons made from upstream's icon, by turning the background transparent.
|
# icons made from upstream's icon, by turning the background transparent.
|
||||||
for i in $CWD/icons/*.png; do
|
for i in $CWD/icons/*.png; do
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PRGNAM="oblige"
|
PRGNAM="oblige"
|
||||||
VERSION="7.70"
|
VERSION="7.70"
|
||||||
HOMEPAGE="http://oblige.sourceforge.net/"
|
HOMEPAGE="https://oblige.sourceforge.net/"
|
||||||
DOWNLOAD="https://sourceforge.net/projects/oblige/files/Oblige/7.70/oblige-770-source.zip"
|
DOWNLOAD="https://sourceforge.net/projects/oblige/files/Oblige/7.70/oblige-770-source.zip"
|
||||||
MD5SUM="0995d8c17ca051ff522084dc9a6e664f"
|
MD5SUM="0995d8c17ca051ff522084dc9a6e664f"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
|
|
Loading…
Reference in a new issue