forked from Plemya-x/alr-repo
		
	openrazer
This commit is contained in:
		
							
								
								
									
										92
									
								
								openrazer/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								openrazer/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,92 @@ | |||||||
|  | basepkg_name='openrazer' | ||||||
|  | name=( | ||||||
|  |   openrazer-daemon | ||||||
|  |   openrazer-driver-dkms | ||||||
|  |   python-openrazer | ||||||
|  | ) | ||||||
|  | version='3.10.2' | ||||||
|  | release='1' | ||||||
|  | desc='Community-led effort to support Razer peripherals on Linux' | ||||||
|  | desc_ru='Коммьюнити-проект, который поддерживает периферийные устройства Razer на Linux' | ||||||
|  | homepage='https://openrazer.github.io' | ||||||
|  | maintainer='Evgeny Khramov <xpamych@yandex.ru>' | ||||||
|  | maintainer_ru="Евгений Храмов <xpamych@yandex.ru>" | ||||||
|  | architectures=('all') | ||||||
|  | license=('GPL') | ||||||
|  | provides=( | ||||||
|  |   'openrazer-daemon' | ||||||
|  |   'openrazer-driver-dkms' | ||||||
|  |   'python-openrazer' | ||||||
|  | ) | ||||||
|  | conflicts=('openrazer') | ||||||
|  |  | ||||||
|  | sources=("https://github.com/openrazer/openrazer/releases/download/v$version/openrazer-$version.tar.xz") | ||||||
|  | checksums=('SKIP') | ||||||
|  |  | ||||||
|  | scripts=( | ||||||
|  | 	['postinstall']='postinstall.sh' | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | meta_openrazer-daemon() { | ||||||
|  | 	desc="Userspace daemon that abstracts access to the kernel driver. Provides a DBus service for applications to use." | ||||||
|  | 	desc_ru="Пользовательский демон, который абстрагирует доступ к драйверу ядра. Предоставляет D-Bus сервис для приложений для использования." | ||||||
|  | } | ||||||
|  |  | ||||||
|  | meta_openrazer-driver-dkms() { | ||||||
|  |   desc="OpenRazer kernel modules sources." | ||||||
|  |   desc_ru="Исходные коды модулей ядра OpenRazer." | ||||||
|  | } | ||||||
|  |  | ||||||
|  | meta_python-openrazer() { | ||||||
|  |   desc="Library for interacting with the OpenRazer daemon" | ||||||
|  |   desc_ru="Библиотека для взаимодействия с OpenRazer демоном" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | package_openrazer-daemon() { | ||||||
|  |   deps+=( | ||||||
|  |   'dbus-python' | ||||||
|  |   'openrazer-driver-dkms' | ||||||
|  |   'python3-daemonize' | ||||||
|  |   'python3-gobject' | ||||||
|  |   'python3-pyudev' | ||||||
|  |   'python3-setproctitle' | ||||||
|  |   'xautomation' | ||||||
|  |   ) | ||||||
|  |   opt_deps+=('libnotify: for the battery notifier') | ||||||
|  |  | ||||||
|  |   cd $srcdir/$basepkg_name-$version | ||||||
|  |   make DESTDIR="$pkgdir" daemon_install | ||||||
|  | } | ||||||
|  |  | ||||||
|  | files_openrazer-daemon() { | ||||||
|  |   echo ./usr/bin/openrazer-daemon | ||||||
|  |     printf '"%s" ' ./usr/lib/python3.11/site-packages/openrazer_daemon/**/* | ||||||
|  |     printf '"%s" ' ./usr/lib/python3.11/site-packages/openrazer_daemon-$version-py3.11.egg-info/* | ||||||
|  |   echo ./usr/lib/systemd/user/openrazer-daemon.service | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
|  | package_openrazer-driver-dkms() { | ||||||
|  |   deps+=('dkms') | ||||||
|  |   cd $srcdir/$basepkg_name-$version | ||||||
|  |   make DESTDIR="$pkgdir" setup_dkms udev_install | ||||||
|  | } | ||||||
|  |  | ||||||
|  | files_openrazer-driver-dkms() { | ||||||
|  |   echo ./usr/lib/udev/rules.d/99-razer.rules | ||||||
|  |   echo ./usr/lib/udev/razer_mount | ||||||
|  | } | ||||||
|  |  | ||||||
|  | package_python-openrazer() { | ||||||
|  |   deps+=( | ||||||
|  |   'openrazer-daemon' | ||||||
|  |   'python3-numpy' | ||||||
|  |   ) | ||||||
|  |   cd $srcdir/$basepkg_name-$version | ||||||
|  |   make DESTDIR="$pkgdir" python_library_install | ||||||
|  | } | ||||||
|  |  | ||||||
|  | files_python-openrazer() { | ||||||
|  |   printf '"%s" ' ./usr/lib/python3.11/site-packages/openrazer/**/* | ||||||
|  |   printf '"%s" ' ./usr/lib/python3.11/site-packages/openrazer-$version-py3.11.egg-info/* | ||||||
|  | } | ||||||
							
								
								
									
										14
									
								
								openrazer/postinstall.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								openrazer/postinstall.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | #!/usr/bin/bash | ||||||
|  |  | ||||||
|  | getent group plugdev >/dev/null || groupadd -r plugdev | ||||||
|  |  | ||||||
|  | cat << EOF | ||||||
|  | The daemon requires you add the user to the \`plugdev\` group: | ||||||
|  | # gpasswd -a \$USER plugdev | ||||||
|  |  | ||||||
|  | Enable the OpenRazer daemon systemd service: | ||||||
|  | \$ systemctl --user enable openrazer-daemon.service | ||||||
|  |  | ||||||
|  | Reboot for changes to take effect. | ||||||
|  | EOF | ||||||
|  |  | ||||||
							
								
								
									
										44
									
								
								razergenie/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								razergenie/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | |||||||
|  | name='razergenie' | ||||||
|  | version='1.3.0' | ||||||
|  | release='1' | ||||||
|  | desc='Configure and control your Razer devices.' | ||||||
|  | desc_ru='Настройка и управление вашими устройствами Razer.' | ||||||
|  | homepage='https://github.com/z3ntu/RazerGenie' | ||||||
|  | maintainer='Evegeniy Khramov <xpamych@yandex.ru>' | ||||||
|  | maintainer_ru='Евгений Храмов <xpamych@yandex.ru>' | ||||||
|  | architectures=('amd64') | ||||||
|  | license=('GPL-3.0-or-later') | ||||||
|  | #provides=('alr') | ||||||
|  | #conflicts=('alr' 'alr-bin' 'alr-git') | ||||||
|  |  | ||||||
|  | deps=( | ||||||
|  |   'libopenrazer' | ||||||
|  |   'qt6-qtbase' | ||||||
|  |   'openrazer-daemon' | ||||||
|  | ) | ||||||
|  | build_deps=( | ||||||
|  |  'meson' | ||||||
|  |  'qt6-qtbase-devel' | ||||||
|  |  'qt6-qttools-devel' | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | sources=("https://github.com/z3ntu/RazerGenie/releases/download/v$version/RazerGenie-$version.tar.xz") | ||||||
|  | checksums=('SKIP') | ||||||
|  |  | ||||||
|  | build() { | ||||||
|  |   meson "RazerGenie-$version" build | ||||||
|  |   meson compile -C build | ||||||
|  | } | ||||||
|  |  | ||||||
|  | package() { | ||||||
|  |   meson install -C build --destdir "$pkgdir" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | files() { | ||||||
|  |   echo ./usr/local/bin/razergenie | ||||||
|  |   echo ./usr/local/share/applications/xyz.z3ntu.razergenie.desktop | ||||||
|  |   echo ./usr/local/share/icons/hicolor/scalable/apps/xyz.z3ntu.razergenie.svg | ||||||
|  |   echo ./usr/local/share/metainfo/xyz.z3ntu.razergenie.appdata.xml | ||||||
|  |   printf '"%s" ' ./usr/local/share/libopenrazer/translations/* | ||||||
|  |   printf '"%s" ' ./usr/local/share/razergenie/**/* | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user