6fc059bc02
Closes: #11847 [via git-merge-pr]
57 lines
1.6 KiB
Bash
57 lines
1.6 KiB
Bash
# Template file for 'openrazer-meta'
|
|
# Currently only supports building DKMS
|
|
|
|
pkgname=openrazer-meta
|
|
version=2.2.2
|
|
revision=1
|
|
wrksrc=openrazer-${version}
|
|
build_style=gnu-makefile
|
|
make_install_target="setup_dkms udev_install daemon_install xdg_install python_library_install"
|
|
hostmakedepends="python3 python3-setuptools"
|
|
depends="openrazer-daemon openrazer-driver-dkms python3-openrazer"
|
|
short_desc="Meta package for installing all required OpenRazer packages"
|
|
maintainer="Luca Weiss <luca@z3ntu.xyz>"
|
|
license="GPL-2"
|
|
homepage="https://openrazer.github.io"
|
|
distfiles="https://github.com/openrazer/openrazer/releases/download/v${version}/openrazer-${version}.tar.xz"
|
|
checksum=919700abad03c188d005f56acdb155e44b37b56499cdfe900be8f4ab2a1484b3
|
|
|
|
do_build() {
|
|
:
|
|
}
|
|
|
|
openrazer-daemon_package() {
|
|
short_desc="Userspace daemon that abstracts access to the kernel driver"
|
|
depends="openrazer-driver-dkms python3-setproctitle python3-pyudev python3-daemonize python3-six"
|
|
|
|
pkg_install() {
|
|
vmove etc/xdg/autostart
|
|
vmove usr/bin
|
|
vmove $py3_sitelib/openrazer_daemon
|
|
vmove $py3_sitelib/openrazer_daemon-*.egg-info
|
|
vmove usr/share
|
|
}
|
|
}
|
|
|
|
openrazer-driver-dkms_package() {
|
|
short_desc="Kernel driver for Razer devices (DKMS-variant)"
|
|
depends="dkms"
|
|
triggers="dkms"
|
|
dkms_modules="openrazer-driver 1.0.0"
|
|
system_groups="plugdev"
|
|
|
|
pkg_install() {
|
|
vmove usr/lib/udev
|
|
vmove usr/src
|
|
}
|
|
}
|
|
|
|
python3-openrazer_package() {
|
|
short_desc="Python library for accessing the Razer daemon from Python"
|
|
depends="python3 python3-dbus python3-numpy python3-gobject openrazer-daemon"
|
|
|
|
pkg_install() {
|
|
vmove $py3_sitelib/openrazer
|
|
vmove $py3_sitelib/openrazer-*.egg-info
|
|
}
|
|
}
|