Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: syncthingtray-1.2.2
Date: Thu, 11 Aug 2022 05:41:39 +0200	[thread overview]
Message-ID: <20220811034139._qV0AFP2NrROw_iGZ3_qxP94Tn-cQ610daMLe6h2c4w@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38572@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages new/syncthingtray
https://github.com/void-linux/void-packages/pull/38572

New package: syncthingtray-1.2.2
- New package: qtforkawesome-0.0.4
    - dependency
- New package: syncthingtray-1.2.2

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**



A patch file from https://github.com/void-linux/void-packages/pull/38572.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new/syncthingtray-38572.patch --]
[-- Type: text/x-diff, Size: 7758 bytes --]

From 792be2f041c6c0ba6ce46e19ef60a61b16ca669d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 10 Aug 2022 00:11:18 -0400
Subject: [PATCH 1/2] New package: qtforkawesome-0.0.4

---
 common/shlibs                  |  2 ++
 srcpkgs/qtforkawesome-devel    |  1 +
 srcpkgs/qtforkawesome/template | 39 ++++++++++++++++++++++++++++++++++
 srcpkgs/qtforkawesome/update   |  2 ++
 4 files changed, 44 insertions(+)
 create mode 120000 srcpkgs/qtforkawesome-devel
 create mode 100644 srcpkgs/qtforkawesome/template
 create mode 100644 srcpkgs/qtforkawesome/update

diff --git a/common/shlibs b/common/shlibs
index ea6fde4ffe31..ae42824eac85 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,5 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libqtforkawesome.so.0.0.4 qtforkawesome-0.0.4_1
+libqtquickforkawesome.so.0.0.4 qtforkawesome-0.0.4_1
diff --git a/srcpkgs/qtforkawesome-devel b/srcpkgs/qtforkawesome-devel
new file mode 120000
index 000000000000..4fdc9afbf63f
--- /dev/null
+++ b/srcpkgs/qtforkawesome-devel
@@ -0,0 +1 @@
+qtforkawesome
\ No newline at end of file
diff --git a/srcpkgs/qtforkawesome/template b/srcpkgs/qtforkawesome/template
new file mode 100644
index 000000000000..33820cedf364
--- /dev/null
+++ b/srcpkgs/qtforkawesome/template
@@ -0,0 +1,39 @@
+# Template file for 'qtforkawesome'
+pkgname=qtforkawesome
+version=0.0.4
+revision=1
+_fork_awesome_version=1.2.0
+create_wrksrc=yes
+build_wrksrc="${pkgname}-${version}"
+build_style=cmake
+configure_args="-DBUILD_SHARED_LIBS=ON"
+hostmakedepends="qt5-host-tools qt5-qmake perl-YAML"
+makedepends="qt5-devel qt5-declarative-devel qtutilities-devel cpp-utilities-devel
+ qt5-gui qt5-core qt5-quickcontrols"
+short_desc="Library that bundles ForkAwesome for use within Qt applications"
+maintainer="classabbyamp <void@placeviolette.net>"
+license="GPL-2.0-or-later, OFL-1.1"
+homepage="Library that bundles ForkAwesome for use within Qt applications"
+distfiles="https://github.com/Martchus/qtforkawesome/archive/refs/tags/v${version}.tar.gz
+ https://github.com/ForkAwesome/Fork-Awesome/archive/refs/tags/${_fork_awesome_version}.tar.gz"
+checksum="35db0d10365fef90788fa70f50743f76eff2d36cae51955f300d57b84a76893f
+ 23fba5f191f204e0414c547bf4c9b10fd7ca42c151260e8f64698449a75fbdb3"
+
+make_check_pre="env QT_QPA_PLATFORM=offscreen"
+make_check_target="check"
+
+pre_configure() {
+	configure_args+=" -DFORK_AWESOME_FONT_FILE=${wrksrc}/Fork-Awesome-${_fork_awesome_version}/fonts/forkawesome-webfont.woff2
+	 -DFORK_AWESOME_ICON_DEFINITIONS=${wrksrc}/Fork-Awesome-${_fork_awesome_version}/src/icons/icons.yml"
+}
+
+qtforkawesome-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/share
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}
diff --git a/srcpkgs/qtforkawesome/update b/srcpkgs/qtforkawesome/update
new file mode 100644
index 000000000000..b0881647ebae
--- /dev/null
+++ b/srcpkgs/qtforkawesome/update
@@ -0,0 +1,2 @@
+site="https://github.com/Martchus/qtforkawesome/tags"
+pattern='/archive/refs/tags/(v?|\Qqtforkawesome\E-)?\K[\d.]+(?=\.tar\.gz")'

From 4fadd2ab5d4e9f146a06dd06ab4454ccd196aabf Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 10 Aug 2022 00:17:59 -0400
Subject: [PATCH 2/2] New package: syncthingtray-1.2.2

closes #38550
---
 common/shlibs                  |  3 ++
 srcpkgs/syncthingtray-devel    |  1 +
 srcpkgs/syncthingtray-dolphin  |  1 +
 srcpkgs/syncthingtray-plasma   |  1 +
 srcpkgs/syncthingtray/template | 66 ++++++++++++++++++++++++++++++++++
 5 files changed, 72 insertions(+)
 create mode 120000 srcpkgs/syncthingtray-devel
 create mode 120000 srcpkgs/syncthingtray-dolphin
 create mode 120000 srcpkgs/syncthingtray-plasma
 create mode 100644 srcpkgs/syncthingtray/template

diff --git a/common/shlibs b/common/shlibs
index ae42824eac85..61924610cc52 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4187,3 +4187,6 @@ libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
 libqtforkawesome.so.0.0.4 qtforkawesome-0.0.4_1
 libqtquickforkawesome.so.0.0.4 qtforkawesome-0.0.4_1
+libsyncthingwidgets.so.1.2.2 syncthingtray-1.2.2_1
+libsyncthingmodel.so.1.2.2 syncthingtray-1.2.2_1
+libsyncthingconnector.so.1.2.2 syncthingtray-1.2.2_1
diff --git a/srcpkgs/syncthingtray-devel b/srcpkgs/syncthingtray-devel
new file mode 120000
index 000000000000..146441954aaa
--- /dev/null
+++ b/srcpkgs/syncthingtray-devel
@@ -0,0 +1 @@
+syncthingtray
\ No newline at end of file
diff --git a/srcpkgs/syncthingtray-dolphin b/srcpkgs/syncthingtray-dolphin
new file mode 120000
index 000000000000..146441954aaa
--- /dev/null
+++ b/srcpkgs/syncthingtray-dolphin
@@ -0,0 +1 @@
+syncthingtray
\ No newline at end of file
diff --git a/srcpkgs/syncthingtray-plasma b/srcpkgs/syncthingtray-plasma
new file mode 120000
index 000000000000..146441954aaa
--- /dev/null
+++ b/srcpkgs/syncthingtray-plasma
@@ -0,0 +1 @@
+syncthingtray
\ No newline at end of file
diff --git a/srcpkgs/syncthingtray/template b/srcpkgs/syncthingtray/template
new file mode 100644
index 000000000000..4f338f2cc200
--- /dev/null
+++ b/srcpkgs/syncthingtray/template
@@ -0,0 +1,66 @@
+# Template file for 'syncthingtray'
+pkgname=syncthingtray
+version=1.2.2
+revision=1
+build_style=cmake
+configure_args="-DJS_PROVIDER=qml -DBUILTIN_TRANSLATIONS=ON -DSYSTEMD_SUPPORT=OFF
+ -DBUILD_SHARED_LIBS=ON -DWEBVIEW_PROVIDER=$(vopt_if webengine webengine none)"
+hostmakedepends="pkg-config qt5-host-tools qt5-qmake extra-cmake-modules plasma-framework"
+makedepends="cpp-utilities-devel qtutilities-devel qtforkawesome-devel
+ qt5-devel qt5-core qt5-network qt5-gui qt5-widgets qt5-svg qt5-declarative
+ qt5-quickcontrols qt5-location-devel boost-devel kio-devel plasma-framework-devel
+ $(vopt_if webengine 'qt5-webengine-devel qt5-webchannel-devel')"
+depends="syncthing"
+checkdepends="syncthing iproute2"
+short_desc="Tray application for Syncthing"
+maintainer="classabbyamp <void@placeviolette.net>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/Martchus/syncthingtray"
+distfiles="https://github.com/Martchus/syncthingtray/archive/refs/tags/v${version}.tar.gz"
+checksum=0f556e30091ffc06e7e489c5e09e5460401c28fd1e8318b68cb6066ead7fe7a1
+
+# requires weird port-binding shenanigans that may not work on ipv6
+# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=syncthingtray#n50
+make_check=no
+
+build_options="webengine"
+desc_option_webengine="Build with Qt5 WebEngine support"
+
+# if not enabled, it will fall back to web browser
+if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
+	if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
+		build_options_default+=" webengine"
+	fi
+fi
+
+syncthingtray-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+		for d in connector fileitemaction model plasmoid widgets; do
+			vmove "usr/share/syncthing${d}/cmake"
+		done
+	}
+}
+
+syncthingtray-plasma_package() {
+	depends="${sourcepkg}>=${version}_${revision} plasma-workspace"
+	short_desc+=" - KDE plasmoid"
+	pkg_install() {
+		vmove usr/lib/qt5/plugins/plasma
+		vmove usr/share/plasma
+		vmove usr/share/kservices5/plasma-applet-martchus.syncthingplasmoid.desktop
+	}
+}
+
+syncthingtray-dolphin_package() {
+	depends="${sourcepkg}>=${version}_${revision} kio"
+	short_desc+=" - KDE dolphin integration"
+	pkg_install() {
+		vmove usr/share/kservices5/syncthingfileitemaction.desktop
+		vmove "usr/lib/qt5/plugins/*.so"
+	}
+}

  parent reply	other threads:[~2022-08-11  3:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-10  4:19 [PR PATCH] " classabbyamp
2022-08-10  4:28 ` [PR PATCH] [Updated] [WIP] " classabbyamp
2022-08-10  4:38 ` classabbyamp
2022-08-10  6:03 ` classabbyamp
2022-08-10  6:21 ` [PR PATCH] [Updated] " classabbyamp
2022-08-10  6:22 ` classabbyamp
2022-08-11  1:48 ` [PR REVIEW] " ahesford
2022-08-11  1:48 ` ahesford
2022-08-11  1:48 ` ahesford
2022-08-11  1:50 ` classabbyamp
2022-08-11  2:09 ` ahesford
2022-08-11  2:11 ` classabbyamp
2022-08-11  2:14 ` [PR PATCH] [Updated] " classabbyamp
2022-08-11  2:21 ` classabbyamp
2022-08-11  2:28 ` classabbyamp
2022-08-11  3:41 ` classabbyamp [this message]
2022-08-11  3:52 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220811034139._qV0AFP2NrROw_iGZ3_qxP94Tn-cQ610daMLe6h2c4w@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).