Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: hydrus-468
@ 2022-01-13 18:27 fanyx
  2022-01-13 19:49 ` [PR PATCH] [Updated] " fanyx
  0 siblings, 1 reply; 2+ messages in thread
From: fanyx @ 2022-01-13 18:27 UTC (permalink / raw)
  To: ml

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

There is a new 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-468
<!-- 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: 3225 bytes --]

From 9afa811de9273fa64a596a061d5fcb5f0dc41ebb Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@pm.me>
Date: Wed, 12 Jan 2022 18:26:04 +0100
Subject: [PATCH] New package: hydrus-468_1

---
 srcpkgs/hydrus/files/hydrus-client  |  2 ++
 srcpkgs/hydrus/files/hydrus-server  |  2 ++
 srcpkgs/hydrus/files/hydrus.desktop |  9 ++++++
 srcpkgs/hydrus/template             | 43 +++++++++++++++++++++++++++++
 4 files changed, 56 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..7d37826a8c34
--- /dev/null
+++ b/srcpkgs/hydrus/template
@@ -0,0 +1,43 @@
+# Template file for 'hydrus'
+pkgname=hydrus
+version=468
+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=f87e4df7f31ac6536d74b01a5db266997145c4995bbe7223b7b38aaa8a6e3070
+
+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 help hydrus static client.pyw server.py ${DESTDIR}/usr/lib/hydrus/
+
+	vmkdir usr/lib/hydrus/bin
+
+	vbin ${FILESDIR}/hydrus-client
+	vbin ${FILESDIR}/hydrus-server
+
+	vmkdir usr/share/applications
+	vcopy ${FILESDIR}/hydrus.desktop usr/share/applications/
+
+	vlicense COPYING
+	vlicense license.txt
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Updated] New package: hydrus-468
  2022-01-13 18:27 [PR PATCH] New package: hydrus-468 fanyx
@ 2022-01-13 19:49 ` fanyx
  0 siblings, 0 replies; 2+ messages in thread
From: fanyx @ 2022-01-13 19:49 UTC (permalink / raw)
  To: ml

[-- 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-468
<!-- 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: 3223 bytes --]

From 415d989c9f3611e72e5a5b9e69703379e789e3b5 Mon Sep 17 00:00:00 2001
From: fanyx <fanyx@pm.me>
Date: Wed, 12 Jan 2022 18:26:04 +0100
Subject: [PATCH] New package: hydrus-469

---
 srcpkgs/hydrus/files/hydrus-client  |  2 ++
 srcpkgs/hydrus/files/hydrus-server  |  2 ++
 srcpkgs/hydrus/files/hydrus.desktop |  9 ++++++
 srcpkgs/hydrus/template             | 43 +++++++++++++++++++++++++++++
 4 files changed, 56 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..2ea1d8f9d474
--- /dev/null
+++ b/srcpkgs/hydrus/template
@@ -0,0 +1,43 @@
+# Template file for 'hydrus'
+pkgname=hydrus
+version=469
+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=389b09476f4334546f21ae47821c38237a9212007c6561d51f5a08b6847c8c3a
+
+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 help hydrus static client.pyw server.py ${DESTDIR}/usr/lib/hydrus/
+
+	vmkdir usr/lib/hydrus/bin
+
+	vbin ${FILESDIR}/hydrus-client
+	vbin ${FILESDIR}/hydrus-server
+
+	vmkdir usr/share/applications
+	vcopy ${FILESDIR}/hydrus.desktop usr/share/applications/
+
+	vlicense COPYING
+	vlicense license.txt
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-13 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 18:27 [PR PATCH] New package: hydrus-468 fanyx
2022-01-13 19:49 ` [PR PATCH] [Updated] " fanyx

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).