Github messages for voidlinux
 help / color / mirror / Atom feed
From: fanyx <fanyx@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: hydrus-501
Date: Fri, 14 Oct 2022 12:18:21 +0200	[thread overview]
Message-ID: <20221014101821.4-qM6yzICcnnsGGqbkr3g3l8LuLK86U-L1UKDdtF9X4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35034@inbox.vuxu.org>

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

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

https://github.com/fanyx/void-packages hydrus
https://github.com/void-linux/void-packages/pull/35034

New package: hydrus-501
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### 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**

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)


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

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

From 2f3db22fe57055e91e8052cb680438256b0103a6 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@fanyx.xyz>
Date: Fri, 14 Oct 2022 12:18:12 +0200
Subject: [PATCH] New package: hydrus-501

---
 srcpkgs/hydrus/files/hydrus-client  |  2 ++
 srcpkgs/hydrus/files/hydrus-server  |  2 ++
 srcpkgs/hydrus/files/hydrus.desktop |  9 +++++++
 srcpkgs/hydrus/template             | 42 +++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 srcpkgs/hydrus/files/hydrus-client
 create mode 100644 srcpkgs/hydrus/files/hydrus-server
 create mode 100644 srcpkgs/hydrus/files/hydrus.desktop
 create mode 100644 srcpkgs/hydrus/template

diff --git a/srcpkgs/hydrus/files/hydrus-client b/srcpkgs/hydrus/files/hydrus-client
new file mode 100644
index 000000000000..f3ed9ccd0add
--- /dev/null
+++ b/srcpkgs/hydrus/files/hydrus-client
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec python -OO /usr/lib/hydrus/client.pyw "$@"
diff --git a/srcpkgs/hydrus/files/hydrus-server b/srcpkgs/hydrus/files/hydrus-server
new file mode 100644
index 000000000000..80376bed6816
--- /dev/null
+++ b/srcpkgs/hydrus/files/hydrus-server
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec python -OO /usr/lib/hydrus/server.py "$@"
diff --git a/srcpkgs/hydrus/files/hydrus.desktop b/srcpkgs/hydrus/files/hydrus.desktop
new file mode 100644
index 000000000000..495c2f060d6e
--- /dev/null
+++ b/srcpkgs/hydrus/files/hydrus.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=Hydrus Client
+Comment=Danbooru-like image tagging and searching system for the desktop
+Exec=hydrus-client
+Icon=/usr/lib/hydrus/static/hydrus_non-transparent.png
+Terminal=false
+Type=Application
+Categories=Application;FileTools;Graphics;Network;
diff --git a/srcpkgs/hydrus/template b/srcpkgs/hydrus/template
new file mode 100644
index 000000000000..cec3c1b5a999
--- /dev/null
+++ b/srcpkgs/hydrus/template
@@ -0,0 +1,42 @@
+# Template file for 'hydrus'
+pkgname=hydrus
+version=502
+revision=1
+archs="x86_64"
+makedepends="python3"
+depends="python3 libopencv-python3 python3-BeautifulSoup4 python3-yaml python3-lz4
+ python3-numpy python3-Twisted python3-Pillow python3-pysocks python3-psutil
+ python3-send2trash python3-html5lib python3-requests python3-QtPy noto-fonts-emoji
+ python3-mpv python3-service_identity python3-PyQt5 fmt python3-pyside2 ffmpeg
+ miniupnpc desktop-file-utils python3-cloudscraper python3-openssl"
+short_desc="Danbooru-like image tagging and searching system for the desktop"
+maintainer="fanyx <fanyx@pm.me>"
+license="WTFPL"
+homepage="https://hydrusnetwork.github.io/hydrus/"
+distfiles="https://github.com/hydrusnetwork/${pkgname}/archive/refs/tags/v${version}.tar.gz"
+checksum=684e643f781fa7682a670a75ee09fbc12531d27904be99d9b8e642f50c277d88
+
+pre_build() {
+	rm -f "hydrus/Test"*.py
+	rm -rf "static/testing"
+}
+
+do_build() {
+	echo 'Compiling .py files...'
+	python3 -OO -m compileall -fq .
+}
+
+do_install() {
+	vmkdir usr/lib/hydrus
+	cp -r hydrus static client.pyw server.py ${DESTDIR}/usr/lib/hydrus/
+
+	vbin ${FILESDIR}/hydrus-client
+	vbin ${FILESDIR}/hydrus-server
+
+	vmkdir usr/share/applications
+	vcopy ${FILESDIR}/hydrus.desktop usr/share/applications/
+
+	vsed -i hydrus/core/HydrusConstants.py -e 's|^LICENSE_PATH.*|LICENSE_PATH = "/usr/share/licenses/hydrus/license.txt"|'
+	vlicense COPYING
+	vlicense license.txt
+}

  parent reply	other threads:[~2022-10-14 10:18 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 18:27 [PR PATCH] New package: hydrus-468 fanyx
2022-01-13 19:49 ` [PR PATCH] [Updated] " fanyx
2022-02-20 13:33 ` [PR PATCH] [Updated] New package: hydrus-469 fanyx
2022-06-08  9:50 ` [PR PATCH] [Updated] New package: hydrus-474 fanyx
2022-06-08  9:51 ` fanyx
2022-06-10 15:21 ` fanyx
2022-06-10 15:37 ` fanyx
2022-06-10 15:40 ` [PR PATCH] [Updated] New package: hydrus-488d fanyx
2022-09-09  2:15 ` github-actions
2022-09-09  9:48 ` [PR PATCH] [Updated] " fanyx
2022-09-20 13:51 ` New package: hydrus-499 fanyx
2022-09-20 13:54 ` [PR PATCH] [Updated] " fanyx
2022-09-20 14:11 ` fanyx
2022-09-20 14:16 ` fanyx
2022-09-20 14:36 ` fanyx
2022-10-05 19:20 ` RunningDroid
2022-10-05 19:23 ` [PR REVIEW] " RunningDroid
2022-10-11 10:36 ` [PR PATCH] [Updated] " fanyx
2022-10-11 10:36 ` [PR REVIEW] " fanyx
2022-10-11 10:36 ` fanyx
2022-10-11 10:37 ` [PR PATCH] [Updated] " fanyx
2022-10-11 10:38 ` fanyx
2022-10-11 10:39 ` fanyx
2022-10-14 10:18 ` fanyx [this message]
2022-10-14 21:40 ` [PR REVIEW] New package: hydrus-502 paper42
2022-10-14 21:40 ` paper42
2022-10-14 21:40 ` paper42
2022-10-14 21:40 ` paper42
2022-10-14 21:40 ` paper42
2022-10-14 21:40 ` paper42
2022-10-14 21:40 ` paper42
2022-10-14 21:40 ` paper42
2022-10-14 23:43 ` fanyx
2022-10-14 23:44 ` fanyx
2022-10-14 23:46 ` fanyx
2022-10-14 23:46 ` fanyx
2022-10-15 10:30 ` [PR PATCH] [Updated] " fanyx
2022-10-15 10:31 ` [PR REVIEW] " fanyx
2022-10-15 10:32 ` fanyx
2022-10-15 10:33 ` fanyx
2022-10-15 10:40 ` [PR PATCH] [Updated] " fanyx
2022-10-15 10:42 ` [PR REVIEW] " fanyx
2022-10-15 10:42 ` fanyx
2022-10-15 10:44 ` [PR PATCH] [Updated] " fanyx
2022-10-16 12:24 ` fanyx
2022-10-17  7:00 ` fanyx
2022-10-17  7:02 ` fanyx
2022-10-25 13:01 ` fanyx
2022-10-27 13:27 ` [PR PATCH] [Updated] New package: hydrus-503 fanyx
2022-11-17  9:28 ` [PR PATCH] [Updated] New package: hydrus-504 fanyx
2022-11-17 10:32 ` [PR REVIEW] New package: hydrus-506 fanyx
2023-01-23 22:56 ` [PR PATCH] [Updated] " fanyx
2023-01-23 22:59 ` [PR PATCH] [Updated] New package: hydrus-513 fanyx
2023-01-30 11:19 ` fanyx
2023-01-30 11:19 ` fanyx
2023-02-09  9:16 ` fanyx
2023-04-26 12:58 ` fanyx
2023-04-28  8:01 ` [PR PATCH] [Updated] New package: hydrus-524 fanyx
2023-06-28 20:07 ` [PR PATCH] [Merged]: New package: hydrus-525a Duncaen

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=20221014101821.4-qM6yzICcnnsGGqbkr3g3l8LuLK86U-L1UKDdtF9X4@z \
    --to=fanyx@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).