Changeset View
Changeset View
Standalone View
Standalone View
package.yml
- This file was added.
| name : openrazer | |||||
| version : 2.4.0 | |||||
| release : 143 | |||||
| source : | |||||
| - https://github.com/openrazer/openrazer/releases/download/v2.4.0/openrazer-2.4.0.tar.xz : 332ee525696ae1bb831f22bf2c699f028fbc8053445aaf6e5c9c2a2dc2760853 | |||||
| license : GPL-2.0-or-later | |||||
| component : | |||||
| - kernel.drivers | |||||
| - current : kernel.drivers | |||||
| - common : system.utils | |||||
| - modaliases : kernel.drivers | |||||
| summary : | |||||
| - A collection of Linux drivers for the Razer devices | |||||
| - common : Common component for openrazer kernel modules | |||||
| - current : openrazer for the linux-current kernel | |||||
| - modaliases : These files are used by the Software Center for hardware detection. | |||||
| description: | | |||||
| A collection of Linux drivers for the Razer devices, providing kernel drivers, DBus services and Python bindings to interact with the DBus interface | |||||
| builddeps : | |||||
| - pkgconfig(dbus-1) | |||||
| - pkgconfig(fftw3) | |||||
| - pkgconfig(libelf) | |||||
| - pkgconfig(SDL2_image) | |||||
| - pkgconfig(udev) | |||||
| - jq | |||||
| - linux-lts | |||||
| - linux-lts-headers | |||||
| - linux-current | |||||
| - linux-current-headers | |||||
| patterns : | |||||
| - common : /* | |||||
| - main : /lib/modules/*.lts | |||||
| - current : /lib/modules/*.current | |||||
| - modaliases : /usr/share/linux-driver-management/modaliases | |||||
| permanent : | |||||
| - /lib/modules | |||||
| rundeps : | |||||
| - common : | |||||
| - numpy | |||||
| - python-evdev | |||||
| - python-notify2 | |||||
| - python-setproctitle | |||||
| - python-daemonize | |||||
| - python3-dbus | |||||
| - python3-gobject | |||||
| - python3-pyudev | |||||
| - xaut | |||||
| - xdotool | |||||
| - openrazer-common | |||||
| - current : | |||||
| - openrazer-common | |||||
| replaces : | |||||
| - razer-drivers | |||||
| - common: razer-drivers-common | |||||
| - current: razer-drivers-current | |||||
| setup : | | |||||
| sed -i "s|depmod||g" Makefile | |||||
| pushd ../ | |||||
| cp -a "openrazer-${version}" lts-build | |||||
| cp -a "openrazer-${version}" current-build | |||||
| build : | | |||||
| pushd .. | |||||
| pushd lts-build | |||||
| KVER=%kernel_version_lts% | |||||
| %make KERNELDIR=/lib/modules/$KVER/build MODULEDIR=/lib/modules/$KVER/kernel/drivers/hid | |||||
| pushd ../current-build | |||||
| KVER=%kernel_version_current% | |||||
| %make KERNELDIR=/lib/modules/$KVER/build MODULEDIR=/lib/modules/$KVER/kernel/drivers/hid | |||||
| # Generate modaliases from the LTS tree | |||||
| pushd ../lts-build | |||||
| mkmodaliases "${package}" -o "${package}.modaliases" driver/*.ko | |||||
| install : | | |||||
| pushd .. | |||||
| pushd lts-build | |||||
| KVER=%kernel_version_lts% | |||||
| install -d -m 00644 $installdir/lib/modules/$KVER/kernel/drivers/hid | |||||
| %make install_i_know_what_i_am_doing KERNELDIR=/lib/modules/$KVER/build MODULEDIR=/lib/modules/$KVER/kernel/drivers/hid DESTDIR=$installdir | |||||
| # Razer's build system really flops when things already exist.. Autotools wouldn't hurt. | |||||
| rm -rf $installdir/usr | |||||
| pushd ../current-build | |||||
| KVER=%kernel_version_current% | |||||
| install -d -m 00644 $installdir/lib/modules/$KVER/kernel/drivers/hid | |||||
| %make install_i_know_what_i_am_doing KERNELDIR=/lib/modules/$KVER/build MODULEDIR=/lib/modules/$KVER/kernel/drivers/hid DESTDIR=$installdir | |||||
| # Use example file as default configuration | |||||
| install -D -m 00644 $installdir/usr/share/openrazer/razer.conf.example $installdir/usr/share/openrazer/razer.conf | |||||
| # Now install modaliases for LDM | |||||
| install -D -m 00644 ../lts-build/${package}.modaliases $installdir/usr/share/linux-driver-management/modaliases/${package}.modaliases | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.