Date: Monday, April 17, 2023 @ 14:50:51
Author: antiz
Revision: 1446906
archrelease: copy trunk to community-testing-x86_64
Added:
systray-x/repos/community-testing-x86_64/
systray-x/repos/community-testing-x86_64/Makefile.patch
(from rev 1446905, systray-x/trunk/Makefile.patch)
systray-x/repos/community-testing-x86_64/PKGBUILD
(from rev 1446905, systray-x/trunk/PKGBUILD)
----------------+
Makefile.patch | 29 +++++++++++++++++++++++
PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+)
Copied: systray-x/repos/community-testing-x86_64/Makefile.patch (from rev
1446905, systray-x/trunk/Makefile.patch)
===================================================================
--- community-testing-x86_64/Makefile.patch (rev 0)
+++ community-testing-x86_64/Makefile.patch 2023-04-17 14:50:51 UTC (rev
1446906)
@@ -0,0 +1,29 @@
+diff --git a/Makefile b/Makefile
+index 9631a87..0add4ce 100644
+--- a/Makefile
++++ b/Makefile
+@@ -17,6 +17,8 @@ else
+ endif
+ endif
+
++PREFIX ?=
++
+ #OPTIONS = "DEFINES += NO_KDE_INTEGRATION"
+
+ .PHONY: clean \
+@@ -56,12 +58,12 @@ ifeq (Linux,$(SYSTEM))
+ systray-x-app:
+ @echo "Creating systray-x app" ;\
+ rm -f SysTray-X ;\
+- mkdir -p app/build ;\
+- cd app/build ;\
++ mkdir -p app/${PREFIX}-build ;\
++ cd app/${PREFIX}-build ;\
+ $(QMAKE) $(EXT_VERSION) $(OPTIONS) ../SysTray-X/SysTray-X.pro ;\
+ make ;\
+ cd ../.. ;\
+- cp app/build/SysTray-X-app/SysTray-X .
++ cp app/${PREFIX}-build/SysTray-X-app/SysTray-X .
+ else
+ systray-x-app:
+ @echo "Creating systray-x app" ;\
Copied: systray-x/repos/community-testing-x86_64/PKGBUILD (from rev 1446905,
systray-x/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-04-17 14:50:51 UTC (rev 1446906)
@@ -0,0 +1,67 @@
+# Maintainer: Robin Candau <[email protected]>
+
+pkgbase=systray-x
+_pkgbase=SysTray-X
+pkgname=('systray-x-common' 'systray-x-kde')
+pkgver=0.9.2
+pkgrel=1
+pkgdesc="A system tray extension for Thunderbird 68+ (for X)"
+arch=('x86_64')
+url="https://github.com/Ximi1970/systray-x"
+license=('MPL2')
+depends=('qt5-base' 'thunderbird')
+makedepends=('git' 'zip' 'libx11' 'knotifications')
+source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
+ "Makefile.patch")
+sha256sums=('748542bf60352b139295d0458c0fdc2e78c52cfebe8e93f874d1d320640c8286'
+ 'dac5b7a4a1ad38ed9429d40636b59cb6932d6c7afd20e50609a73e2ff260316a')
+
+prepare() {
+ cd "${pkgbase}-${pkgver}"
+
+ # Input the correct path to the binary in the json file
+ sed -i 's/\/path\/to\/native-messaging\/app/\/usr\/bin/g'
"app/${_pkgbase//-/_}.json"
+
+ # Patch the Makefile to build both binaries into a separated directory
+ patch -Np1 <"${srcdir}"/Makefile.patch
+}
+
+_build() {
+ if [ "${1}" == "systray-x-common" ]; then
+ make OPTIONS="DEFINES+=NO_KDE_INTEGRATION" PREFIX="${1}"
+ else
+ make PREFIX="${1}"
+ fi
+}
+
+build() {
+ cd "${pkgbase}-${pkgver}"
+ _build systray-x-common
+ _build systray-x-kde
+}
+
+package_systray-x-common() {
+pkgdesc="A system tray extension for Thunderbird 68+ (for X) - Common version"
+optdepends=('gnome-shell-extension-appindicator: Gnome integration')
+provides=("${pkgbase}")
+conflicts=("${pkgbase}")
+
+ cd "${pkgbase}-${pkgver}"
+ install -Dm 755
"app/systray-x-common-build/${_pkgbase}-app/${_pkgbase}"
"${pkgdir}/usr/bin/${_pkgbase}"
+ install -Dm 644 "app/${_pkgbase//-/_}.json"
"${pkgdir}/usr/lib/mozilla/native-messaging-hosts/${_pkgbase//-/_}.json"
+ install -Dm 644 "${pkgbase}@Ximi1970.xpi"
"${pkgdir}/usr/lib/thunderbird/extensions/${pkgbase}@Ximi1970.xpi"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgbase}/README.md"
+}
+
+package_systray-x-kde() {
+pkgdesc="A system tray extension for Thunderbird 68+ (for X) - KDE version"
+depends=('knotifications')
+provides=("${pkgbase}")
+conflicts=("${pkgbase}")
+
+ cd "${pkgbase}-${pkgver}"
+ install -Dm 755 "app/systray-x-kde-build/${_pkgbase}-app/${_pkgbase}"
"${pkgdir}/usr/bin/${_pkgbase}"
+ install -Dm 644 "app/${_pkgbase//-/_}.json"
"${pkgdir}/usr/lib/mozilla/native-messaging-hosts/${_pkgbase//-/_}.json"
+ install -Dm 644 "${pkgbase}@Ximi1970.xpi"
"${pkgdir}/usr/lib/thunderbird/extensions/${pkgbase}@Ximi1970.xpi"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgbase}/README.md"
+}