From f9a80203639ca710b064957a1d1819983bcc6313 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 14 Sep 2021 18:31:18 -0300 Subject: [PATCH] scid_vs_pc: add .desktop file --- srcpkgs/scid_vs_pc/files/scid_vs_pc.desktop | 7 +++++++ srcpkgs/scid_vs_pc/template | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/scid_vs_pc/files/scid_vs_pc.desktop diff --git a/srcpkgs/scid_vs_pc/files/scid_vs_pc.desktop b/srcpkgs/scid_vs_pc/files/scid_vs_pc.desktop new file mode 100644 index 0000000000..52a59f2942 --- /dev/null +++ b/srcpkgs/scid_vs_pc/files/scid_vs_pc.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Scid vs PC +GenericName=Chess Database +Exec=scid +Icon=/usr/share/pixmaps/scid.png +Categories=Game;BoardGame diff --git a/srcpkgs/scid_vs_pc/template b/srcpkgs/scid_vs_pc/template index a9ed2d997f..bc592cafce 100644 --- a/srcpkgs/scid_vs_pc/template +++ b/srcpkgs/scid_vs_pc/template @@ -1,7 +1,7 @@ # Template file for 'scid_vs_pc' pkgname=scid_vs_pc version=4.21 -revision=1 +revision=2 build_style=configure hostmakedepends="tcl" makedepends="tk-devel" @@ -16,3 +16,8 @@ do_configure() { ./configure CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ LINK=${CXX} LDFLAGS="${LDFLAGS}" BINDIR=/usr/bin SHAREDIR=${pkgname} } + +post_install() { + vinstall icons/scid.png 644 usr/share/pixmaps + vinstall "$FILESDIR"/scid_vs_pc.desktop 644 usr/share/applications +}