# Contributor: Bart Ribbers # Maintainer: Luca Weiss pkgname=openrazer pkgver=3.6.1 pkgrel=0 pkgdesc="Open source driver and user-space daemon to control Razer lighting and other features on GNU/Linux" url="https://openrazer.github.io/" arch="noarch" license="GPL-2.0-only" depends=" py3-daemonize py3-dbus py3-gobject3 py3-setproctitle py3-udev " makedepends=" py3-setuptools " subpackages=" $pkgname-doc $pkgname-src py3-$pkgname-pyc py3-$pkgname:py3 " source="https://github.com/openrazer/openrazer/archive/v$pkgver/openrazer-v$pkgver.tar.gz" options="!check" # No tests # secfixes: # 3.4.0-r0: # - CVE-2022-29021 # - CVE-2022-29022 # - CVE-2022-29023 # 3.5.1-r0: # - CVE-2022-23467 package() { DESTDIR="$pkgdir" make appstream_install udev_install daemon_install xdg_install # We don't have systemd rm -r "$pkgdir"/usr/lib/systemd } src() { depends="akms" cd "$builddir" DESTDIR="$subpkgdir" make setup_dkms # We don't have dkms but use akms instead #rm "$pkgdir"/usr/src/openrazer-driver-$pkgver/dkms.conf cat >"$subpkgdir"/usr/src/openrazer-driver-$pkgver/AKMBUILD <<-EOF modname=openrazer-driver modver=$pkgver built_modules='razeraccessory.ko razerkbd.ko razerkraken.ko razermouse.ko' build() { touch "\$builddir"/Makefile make \$MAKEFLAGS -C "\$kernel_srcdir" M="\$builddir" src="\$srcdir"/driver modules } EOF } py3() { depends="py3-numpy" cd "$builddir" DESTDIR="$subpkgdir" make python_library_install } sha512sums=" 1e1db191e4daa028fe177e9c50ddf2dfffdf7c8ba68d108a2e74232b9accb344dbc5c3352aba223434cf16d79c113e7ba19dc9f2e6672758153c25ba9391cbff openrazer-v3.6.1.tar.gz "