From 2b7fb64db33da0f5df6073c56e79a48d0e65164c Mon Sep 17 00:00:00 2001 From: Jason Manley Date: Mon, 24 May 2021 18:33:38 -0500 Subject: [PATCH] New package: q5go-2.1.1 --- srcpkgs/q5go/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/q5go/template diff --git a/srcpkgs/q5go/template b/srcpkgs/q5go/template new file mode 100644 index 000000000000..6d9544b93668 --- /dev/null +++ b/srcpkgs/q5go/template @@ -0,0 +1,21 @@ +# Template file for 'q5go' +pkgname=q5go +version=2.1.1 +revision=1 +archs="i686 x86_64" +wrksrc="q5Go-${pkgname}-${version}" +build_style=qmake +configure_args="src/q5go.pro" +makedepends="qt5-qmake 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=85a3a31a2de96c81a07afa59ea68f6420cfafbcefcd7d7ffd4e8eb8d6b24eeda + +post_install() { + qmake -install qinstall "${wrksrc}/src/images/clientwindow/Bowl.png" "${DESTDIR}/usr/share/q5go/Bowl.png" + qmake -install qinstall "${wrksrc}/templates/qgo.desktop" "${DESTDIR}/usr/share/applications/q5go.desktop" + sed -i -e 's/Name=qgo/Name=q5go/g' -e 's/Comment=qgo/Comment=q5go/g' -e 's/Exec=qgo/Exec=q5go/g' -e 's/Icon=\/usr\/share\/qGo\/pics\/Bowl\.png/Icon=\/usr\/share\/q5go\/Bowl\.png/g' -e 's/MimeType=text\/plain\;text\/sfg\;Application/MimeType=application\/x-go-sgf;/g' "${DESTDIR}/usr/share/applications/q5go.desktop" +}