From 70917ae8850e1bd6c9a5da5ff80b3b93e504507b Mon Sep 17 00:00:00 2001 From: Jason Manley Date: Mon, 16 May 2022 16:14:16 -0500 Subject: [PATCH] New package: q5go-2.13 --- srcpkgs/q5go/patches/qgo.desktop.patch | 18 ++++++++++++++++++ srcpkgs/q5go/template | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 srcpkgs/q5go/patches/qgo.desktop.patch create mode 100644 srcpkgs/q5go/template diff --git a/srcpkgs/q5go/patches/qgo.desktop.patch b/srcpkgs/q5go/patches/qgo.desktop.patch new file mode 100644 index 000000000000..f74d79da566f --- /dev/null +++ b/srcpkgs/q5go/patches/qgo.desktop.patch @@ -0,0 +1,18 @@ +--- a/templates/qgo.desktop 2022-04-27 13:03:23.000000000 -0500 ++++ b/templates/qgo.desktop 2022-05-16 18:26:45.485870905 -0500 +@@ -1,10 +1,10 @@ + [Desktop Entry] + Encoding=UTF-8 +-Comment=qgo +-Exec=qgo +-Icon=/usr/share/qGo/pics/Bowl.png +-MimeType=text/plain;text/sfg;Application +-Name=qgo ++Comment=q5go ++Exec=q5go ++Icon=/usr/share/q5go/pics/Bowl.ico ++MimeType=application/x-go-sgf; ++Name=q5go + GenericName=Go + Name[fr]=qgo + GenericName[ar]=?? diff --git a/srcpkgs/q5go/template b/srcpkgs/q5go/template new file mode 100644 index 000000000000..aff9ab94fb0d --- /dev/null +++ b/srcpkgs/q5go/template @@ -0,0 +1,20 @@ +# Template file for 'q5go' +pkgname=q5go +version=2.1.3 +revision=1 +wrksrc="q5Go-${pkgname}-${version}" +build_style=qmake +configure_args="src/q5go.pro" +hostmakedepends="qt5-qmake qt5-host-tools" +makedepends="qt5-multimedia-devel qt5-svg-devel" +short_desc="Qt5 Go/Weiqi/Baduk client modernized from qGo" +maintainer="Jason Manley " +license="GPL-3.0-or-later" +homepage="https://github.com/bernds/q5Go" +distfiles="https://github.com/bernds/q5Go/archive/refs/tags/${pkgname}-${version}.tar.gz" +checksum=bffab6641acedf20b73f3429c60ef560942ffea27527aaa3a9a9c722b41f0791 + +post_install() { + qmake -install qinstall "${wrksrc}/src/images/Bowl.ico" "${DESTDIR}/usr/share/q5go/pics/Bowl.ico" + qmake -install qinstall "${wrksrc}/templates/qgo.desktop" "${DESTDIR}/usr/share/applications/q5go.desktop" +}