Package Details: hydrus 616-1

Git Clone URL: https://aur.archlinux.org/hydrus.git (read-only, click to copy)
Package Base: hydrus
Description: Danbooru-like image tagging and searching system for the desktop
Upstream URL: http://hydrusnetwork.github.io/hydrus/
Licenses: WTFPL
Conflicts: hydrus-docs-dummy
Submitter: Score_Under
Maintainer: Score_Under (turtletowerz)
Last Packager: turtletowerz
Votes: 42
Popularity: 1.08
First Submitted: 2015-02-28 18:11 (UTC)
Last Updated: 2025-04-03 01:03 (UTC)

Pinned Comments

turtletowerz commented on 2025-02-05 23:14 (UTC)

The AUR package for JpegXL support is outdated and does not build. If you need JpegXL support, follow the instructions in the comment I posted to update the PKGBUILD.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 13 Next › Last »

HydrusUser commented on 2022-12-11 20:42 (UTC)

Without MkDocs, Hydrus will simply ask you if you want to open a webpage for the online version of the help menu instead. I'd imagine that the number of users that need an offline help is extremely small, so I personally don't see the need to keep MkDocs. It's very annoying having to remove it every single time there's an update.

Score_Under commented on 2022-12-01 02:15 (UTC)

@Firegem I don't want to stop building docs if possible, as that impacts the help menu in the program, so for now I've forked the AUR package in question (python-jsmin), and hopefully it'll be disowned at some point so I can revert it again. Hopefully people's AUR helpers should cotton on and realise that they don't need to pull in the original problematic version but I don't know how intelligent those tools are in terms of dependency solving.

BTW, python2-bin should solve the problem for people who don't want to build the package themselves, or if the worst comes to the worst, I'm hosting the deps prebuilt by an automated jenkins thing (https://gurren.score.moe/jenkins/job/pkgbuilds/)

firegem commented on 2022-11-29 06:08 (UTC)

I think this package should stop building documentation. There's no reason to expect people to download and compile python2 by default. Also see: https://github.com/hydrusnetwork/hydrus/issues/1243

ardency commented on 2022-11-25 00:34 (UTC)

I was able to solve the ongoing upstream issue by replacing python-qtpy from community with python-qtpy-git from AUR. This installed v2.3.0, which contains the fix. Hopefully the community package can be updated soon, as this release has been out for over two weeks!

HydrusUser commented on 2022-10-22 20:10 (UTC)

"If you want to manually apply the patch you can do so removing from the pkgbuild the lines marked with - in the patch and adding lines marked with + in the patch. All lines not starting with - or + are there to show where the changes should be made and are not part of those changes."

Thank you for explaining this. I was able to edit the build files, and it built and updated Hydrus successfully. Thanks for the help!

Score_Under commented on 2022-10-22 19:51 (UTC) (edited on 2022-10-22 19:55 (UTC) by Score_Under)

If you want to manually apply the patch you can do so removing from the pkgbuild the lines marked with - in the patch and adding lines marked with + in the patch. All lines not starting with - or + are there to show where the changes should be made and are not part of those changes.

If you have the repo checked out then you should be able to use either git apply or patch -Np1 with this patch file as input, and that should apply the changes automatically.

HydrusUser commented on 2022-10-22 19:47 (UTC)

"The patch I sent was in unified diff format and should be able to be processed by any standard patching tool"

I was just going to manually edit the build file in Pamac and remove the parts for McDocs (though maybe that was a stupid idea); I'm not sure how to run this patch. Sorry, I'm new to all this.

Score_Under commented on 2022-10-22 19:31 (UTC)

Nothing from the depends array should be removed, only from makedepends, and it is because those three exist to translate documentation from markdown to HTML at build time.

The patch I sent was in unified diff format and should be able to be processed by any standard patching tool

HydrusUser commented on 2022-10-22 19:25 (UTC)

Thanks for the fast reply, but now I'm even more confused. This looks like it has a lot more than just removing MkDocs. Why would I remove everything in depends=?

Score_Under commented on 2022-10-22 19:10 (UTC)

@HydrusUser

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ depends=(python python-opencv python-beautifulsoup4 python-yaml
          python-pysocks python-psutil python-send2trash python-html5lib
          python-requests python-qtpy emoji-font python-mpv
          python-service-identity fmt pyside6)
-makedepends=(git 'mkdocs>=1.3.0' mkdocs-material 'pymdown-extensions>=9.4')
+makedepends=(git)
 optdepends=('ffmpeg: show duration and other information on video thumbnails'
             'miniupnpc: automatic port forwarding'
             'desktop-file-utils: to add Hydrus to your desktop environment menus'
@@ -49,9 +49,6 @@ build() {

   msg 'Compiling .py files...'
   python -OO -m compileall -fq .
-
-  msg 'Building documentation...'
-  mkdocs build -d help
 }

 package() {
@@ -59,7 +56,7 @@ package() {

   # Create /opt/hydrus and copy hydrus files to there
   install -m755 -d "${pkgdir}/opt/hydrus"
-  cp -r help hydrus static client.pyw server.py "${pkgdir}/opt/hydrus/"
+  cp -r hydrus static client.pyw server.py "${pkgdir}/opt/hydrus/"

   # Create and populate /opt/hydrus/bin
   install -d -m755 "${pkgdir}/opt/hydrus/bin"

You will also enjoy a much faster build time and much smaller installation size.