Package Details: joycond-cemuhook-git r120.3c0e073-1

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: 6
Popularity: 0.000004
First Submitted: 2020-05-18 09:46 (UTC)
Last Updated: 2023-08-22 22:05 (UTC)

Dependencies (15)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

t.m commented on 2023-08-13 22:28 (UTC)

Hey, could you please include 'python-setuptools' in the depends? Otherwise the build fails.

dreieck commented on 2023-05-12 12:24 (UTC)

python-argparse must be removed from the depends array, see ↗ here.

Thanks for maintaining!

chrhasse commented on 2023-02-27 11:52 (UTC)

Sure, I'd be happy to help maintain it.

nissen22 commented on 2023-02-27 11:27 (UTC) (edited on 2023-02-27 11:30 (UTC) by nissen22)

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!

chrhasse commented on 2023-02-22 03:52 (UTC)

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
}

chrhasse commented on 2023-02-22 01:52 (UTC)

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.

mochaa commented on 2022-04-02 14:28 (UTC)

python-pyudev should be a dependency

mmberlin commented on 2021-07-17 15:48 (UTC)

libudev is provided by systemd-libs. Causes a dependency issue when installing.

modnoob commented on 2021-07-09 13:16 (UTC)

The build fails for me because libudev is missing. I thing it should be a dependency.

nissen22 commented on 2021-07-08 09:24 (UTC)

@Ta180m Done!