Package Details: libqhy 2.0.1-1

Git Clone URL: https://aur.archlinux.org/libqhy.git (read-only, click to copy)
Package Base: libqhy
Description: libqhy used by INDI QHY drivers. Please note that for sake of simplicity package version follows libindi versionning.
Upstream URL: http://www.indilib.org/index.php?title=Main_Page
Licenses: MIT
Conflicts: libqhy-git
Submitter: mobarre
Maintainer: mobarre
Last Packager: mobarre
Votes: 5
Popularity: 0.59
First Submitted: 2021-02-16 10:41 (UTC)
Last Updated: 2023-04-24 09:20 (UTC)

Latest Comments

darkpfs commented on 2024-10-29 08:58 (UTC) (edited on 2024-10-29 08:58 (UTC) by darkpfs)

Looks like the version needs to be bumped up to 2.1.0

yay -S libindi-qhy
 -> No AUR package found for libqhy=2.1.0
 -> could not find all required packages: libqhy =2.1.0

k-laus commented on 2024-01-01 16:35 (UTC) (edited on 2024-01-01 16:39 (UTC) by k-laus)

Please find below a diff to the PKGBUILD that includes several updates:

  • update to indi-3rdparty 2.0.5

  • add architecture aarch64

  • add depends fxload-libusb (need this as -t fx3 support is needed for newer USB3 camera devices, which is not supported by the 7y old fxload). Change /lib/udev/rules.d/qhy rules file to use changed executable name.

  • to support one common SRCDEST folder for makepkg make source package file unique (see https://wiki.archlinux.org/title/PKGBUILD#Sources)

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,24 @@
 # Contributor: Sebastian Baberowski <sebastian@baberowski.com>

 pkgname=libqhy
-pkgver=2.0.1
+pkgver=2.0.5
 pkgrel=1
-pkgdesc="libqhy used by INDI QHY drivers. Please note that for sake of simplicity package version follows libindi versionning."
+pkgdesc="libqhy used by INDI QHY drivers. Please note that for sake of simplicity package version follows libindi versioning."
 url="http://www.indilib.org/index.php?title=Main_Page"
 license=(MIT)
-arch=(i686 x86_64)
+arch=(aarch64 i686 x86_64)
 conflicts=(libqhy-git)
 makedepends=(cmake)
-source=("https://github.com/indilib/indi-3rdparty/archive/v${pkgver}.tar.gz")
-sha256sums=("be98a84ab6166321fe5aa74fca132cd866ae4e6910ef3b97e3502a44c59d277d")
+depends=(fxload-libusb)
+source=("indi-3rdparty-${pkgver}.tar.gz::https://github.com/indilib/indi-3rdparty/archive/v${pkgver}.tar.gz")
+sha256sums=("17f5a0536f2ee6bfbcbdcdde9a44c2e59c2156637004193f650bdd2dda123291")

 prepare() {
   mkdir -p build
   cd indi-3rdparty-${pkgver}
   find ./ -name CMakeLists.txt -exec sed -i -e 's|"\/lib|"${CMAKE_INSTALL_PREFIX}/lib|g' {} \;        # Allow installing outside of /lib
+  # adapt udev rules to use fxload-libusb (which has -t fx3 support and the original doesn't seem to have it)
+  find ./ -name 85-qhyccd.rules -exec sed -i 's/-D $env{DEVNAME}/-p $env{BUSNUM},$env{DEVNUM}/;s|/sbin/fxload|/usr/bin/fxload-libusb|' '{}' ';'
 }

 build() {

nimrod_mack commented on 2022-04-19 08:01 (UTC) (edited on 2022-04-19 08:44 (UTC) by nimrod_mack)

I can confirm that the proper fxload binary should at least be in the optdepends (theoretically one can initialize the library without it, but cameras won't work.)

But fxload from the AUR doesn't work for some (probably most of the newer) cameras because it does not support the -t fx3 option. (It seems to be an old version, not updated since at least 8 years.) Instead, the fxload example from libusb works, but uses another command line format.

To use the fxload-libusb version, one can make the necessary substitutions by adding this to the prepare() function:

# adapt udev rules to use fxload-libusb (which has -t fx3 support and the original doesn't seem to have it)
find ./ -name 85-qhyccd.rules -exec sed -i 's/-D $env{DEVNAME}/-p $env{BUSNUM},$env{DEVNUM}/;s|/sbin/fxload|/usr/bin/fxload-libusb|' '{}' ';'

blemasle commented on 2021-11-21 10:34 (UTC) (edited on 2021-11-21 10:37 (UTC) by blemasle)

Please add fxload in the depends list as it is needed for every udev rules installed by this package.

https://github.com/indilib/indi-3rdparty/blob/master/libqhy/85-qhyccd.rules

Without these udev rules, firmware aren't properly loaded and libindi-qhy for instance can't communicate or even detect cameras.

wgauvin commented on 2021-07-25 03:39 (UTC)

This fails in install as it's trying to install to /lib. Based on the libindi_3rdparty and other libindi packages this should also have the following in the prepare()

  cd indi-3rdparty-${pkgver}
  find ./ -name CMakeLists.txt -exec sed -i -e 's|"\/lib|"${CMAKE_INSTALL_PREFIX}/lib|g' {} \;        # Allow installing outside of /lib

wgauvin commented on 2021-04-05 08:21 (UTC)

The sha265sum is incorrect for tarball. I get a checksum of 552b817c60f50d08c23269f8b6998d7e860731c6a5aebed854bcdb4a5fb13445 but this packages and the indilib-qhy have eb681bc83e6ae8bedc57e5ae899c54d997743ca0e9b832d9b7f25bb5e348f701

The indilib-asi uses the same tarball and has the same checksum as 552b817c60f50d08c23269f8b6998d7e860731c6a5aebed854bcdb4a5fb13445