Hey, could you please include 'python-setuptools' in the depends? Otherwise the build fails.
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/joycond-cemuhook-git.git (read-only, click to copy) |
|---|---|
| Package Base: | joycond-cemuhook-git |
| Description: | Support for cemuhook's UDP protocol for joycond devices |
| Upstream URL: | https://github.com/joaorb64/joycond-cemuhook |
| Keywords: | joycon motion nintendo switch |
| Licenses: | unknown |
| Conflicts: | joycond-cemuhook |
| Submitter: | nissen22 |
| Maintainer: | nissen22 (chrhasse) |
| Last Packager: | chrhasse |
| Votes: | 7 |
| Popularity: | 0.115727 |
| First Submitted: | 2020-05-18 09:46 (UTC) |
| Last Updated: | 2023-08-22 22:05 (UTC) |
Hey, could you please include 'python-setuptools' in the depends? Otherwise the build fails.
python-argparse must be removed from the depends array, see ↗ here.
Thanks for maintaining!
Sure, I'd be happy to help maintain it.
Hi @chrhasse and thank you for the input! Sorry for the late reply. Would you want to be added as co-maintainer? I added your edits!
I actually ended up looking up the "right way" to install it. python-installer will automatically create joycond-cemuhook in bin so run.sh is no longer needed. Versioning for joycond-cemuhook requires python-setuptools-git-versioning as a build dependency, but the package doesn't exist in the official arch repos. python-setuptools-git-versioning-git is in the aur if you want to add an aur dependency. Not including it and adding the --skip-dependency-check flag to python-build causes the package to be installed to /usr/lib/python3.10/site-packages/joycond_cemuhook-0.0.0.dist-info/ instead of /usr/lib/python3.10/site-packages/joycond_cemuhook-0.0.1.dist-info/ but it doesn't seem to hurt functionality.
# Maintainer: nissen22
_pkgname=joycond-cemuhook
pkgname=${_pkgname}-git
pkgver=r116.d488022
pkgrel=1
pkgdesc="Support for cemuhook's UDP protocol for joycond devices"
arch=("any")
url="https://github.com/joaorb64/joycond-cemuhook"
license=("unknown")
depends=("joycond-git" "python" "python-termcolor" "python-evdev" "python-dbus-common" "python-argparse" "python-pyudev" "upower" "systemd-libs")
makedepends=("git" "python-build" "python-installer" "python-wheel")
conflicts=("${_pkgname}")
optdepends=('nintendo-udev: Udev rules for switch controllers', 'hid-nintendo-dkms: Kernel module with switch controller support.')
source=("${_pkgname}::git+https://github.com/joaorb64/${_pkgname}.git")
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/joycond-cemuhook"
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd "$srcdir/joycond-cemuhook"
python -m installer --destdir="$pkgdir" dist/*.whl
}
Looks like the layout of the repository has changed, not sure if it's ideal but changing package to
package() {
install -Dm755 "${srcdir}/run.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${_pkgname}/src/joycond_cemuhook/__init__.py" "${pkgdir}/usr/lib/${pkgname}/__init__.py"
install -Dm644 "${srcdir}/${_pkgname}/src/joycond_cemuhook/profiles/Nintendo Switch Combined Joy-Cons.json" "${pkgdir}/usr/lib/${pkgname}/profiles/Nintendo Switch Combined Joy-Cons.json"
install -Dm644 "${srcdir}/${_pkgname}/src/joycond_cemuhook/profiles/Nintendo Switch Left Joy-Con.json" "${pkgdir}/usr/lib/${pkgname}/profiles/Nintendo Switch Left Joy-Con.json"
install -Dm644 "${srcdir}/${_pkgname}/src/joycond_cemuhook/profiles/Nintendo Switch Pro Controller.json" "${pkgdir}/usr/lib/${pkgname}/profiles/Nintendo Switch Pro Controller.json"
install -Dm644 "${srcdir}/${_pkgname}/src/joycond_cemuhook/profiles/Nintendo Switch Right Joy-Con.json" "${pkgdir}/usr/lib/${pkgname}/profiles/Nintendo Switch Right Joy-Con.json"
install -Dm644 "${srcdir}/${_pkgname}/src/joycond_cemuhook/profiles/Nintendo Switch Virtual Pro Controller.json" "${pkgdir}/usr/lib/${pkgname}/profiles/Nintendo Switch Virtual Pro Controller.json"
# Probably dont need the readme
#install -Dm644 "${srcdir}/${_pkgname}/README.rst" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}
and run.sh to
#!/bin/sh
cd /usr/lib/joycond-cemuhook-git
python __init__.py $@
seems to work. I think it wants to be installed through pip now, but I didn't really look into how to pip install in a pkgbuild.
python-pyudev should be a dependency
libudev is provided by systemd-libs. Causes a dependency issue when installing.
The build fails for me because libudev is missing. I thing it should be a dependency.
@Ta180m Done!