Compare commits
	
		
			18 Commits
		
	
	
		
			init
			...
			multiple-p
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0e81d163d0 | |||
| 06d12ef2ee | |||
| 67cffd400b | |||
| c1b1b560a8 | |||
| d9a3541561 | |||
| f8db6a669d | |||
| 99d9bd5d3a | |||
| 76f9daccd2 | |||
| 79692eb283 | |||
| 752d8e3111 | |||
| aefe07f15f | |||
| d5f3d9a605 | |||
| 114313a1b8 | |||
| 5d38f41152 | |||
| 3b2548d3d9 | |||
| b7f436d5ef | |||
| d1c13fd963 | |||
| bd26236cd7 | 
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| .gigaide | ||||
| .idea | ||||
							
								
								
									
										2
									
								
								alr-repo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								alr-repo.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| [repo] | ||||
| minVersion = "v0.0.5" | ||||
| @@ -1,6 +1,7 @@ | ||||
| name='bar-pkg' | ||||
| version='1.0.0' | ||||
| version='2.0.0' | ||||
| release='1' | ||||
| desc='BAR PKG' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
| @@ -1,6 +1,7 @@ | ||||
| name='foo-pkg' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='FOO PKG' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
							
								
								
									
										40
									
								
								libopenrazer/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								libopenrazer/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| name='libopenrazer' | ||||
| version='0.4.0' | ||||
| release='2' | ||||
| desc='Qt wrapper around the D-Bus API from OpenRazer.' | ||||
| desc_ru='Qt-обертка для D-Bus API от OpenRazer.' | ||||
| homepage='https://github.com/z3ntu/libopenrazer' | ||||
| maintainer='Evgeniy Khramov <xpamych@yandex.ru>' | ||||
| maintainer_ru='Евгений Храмов <xpamych@yandex.ru>' | ||||
| architectures=('amd64') | ||||
| license=('GPL-3.0-or-later') | ||||
|  | ||||
| conflicts=('libopenrazer') | ||||
|  | ||||
| deps=("qt6-qtbase") | ||||
| deps_arch=("qt6-base") | ||||
|  | ||||
| build_deps=('meson' 'qt6-qttools') | ||||
| build_deps_arch=('meson' 'qt6-tools') | ||||
|  | ||||
|  | ||||
| sources=("https://github.com/z3ntu/libopenrazer/releases/download/v$version/libopenrazer-$version.tar.xz") | ||||
| checksums=('SKIP') | ||||
|  | ||||
| build() { | ||||
|   cd $srcdir/$name-$version | ||||
|   mkdir -p build | ||||
|   meson setup build . --prefix /usr | ||||
|   meson compile -C build -j$(($(nproc) - 1)) | ||||
| } | ||||
|  | ||||
| package() { | ||||
|   cd $srcdir/$name-$version | ||||
|   meson install -C build --destdir "$pkgdir" | ||||
| } | ||||
|  | ||||
| files() { | ||||
|   printf '"%s" ' ./usr/include/**/* | ||||
|   printf '"%s" ' ./usr/lib64/**/* | ||||
|   printf '"%s" ' ./usr/share/libopenrazer/translations/* | ||||
| } | ||||
							
								
								
									
										86
									
								
								openrazer/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								openrazer/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,86 @@ | ||||
| basepkg_name='openrazer' | ||||
| name=( | ||||
|   openrazer-daemon | ||||
|   openrazer-driver-dkms | ||||
|   python3-openrazer | ||||
| ) | ||||
| version='3.10.2' | ||||
| release='5' | ||||
| 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') | ||||
|  | ||||
| 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 сервис для приложений для использования." | ||||
|   deps+=( | ||||
|   'openrazer-driver-dkms' | ||||
|   'python3-dbus' | ||||
|   'python3-daemonize' | ||||
|   'python3-gobject' | ||||
|   'python3-pyudev' | ||||
|   'python3-setproctitle' | ||||
|   'xautomation' | ||||
|   ) | ||||
|   opt_deps+=('libnotify: for the battery notifier') | ||||
|   provides=('openrazer-daemon') | ||||
| } | ||||
|  | ||||
| package_openrazer-daemon() { | ||||
|   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 | ||||
|   printf '"%s" ' ./usr/share/**/* | ||||
| } | ||||
|  | ||||
| package_openrazer-driver-dkms() { | ||||
|   cd $srcdir/$basepkg_name-$version | ||||
|   make DESTDIR="$pkgdir" setup_dkms udev_install | ||||
| } | ||||
|  | ||||
| meta_openrazer-driver-dkms() { | ||||
|   deps+=('dkms') | ||||
|   desc="OpenRazer kernel modules sources." | ||||
|   desc_ru="Исходные коды модулей ядра OpenRazer." | ||||
| } | ||||
|  | ||||
| files_openrazer-driver-dkms() { | ||||
|   echo ./usr/lib/udev/rules.d/99-razer.rules | ||||
|   echo ./usr/lib/udev/razer_mount | ||||
| } | ||||
|  | ||||
| meta_python3-openrazer() { | ||||
|   deps+=( | ||||
|   'openrazer-daemon' | ||||
|   'python3-numpy' | ||||
|   ) | ||||
|   desc="Library for interacting with the OpenRazer daemon" | ||||
|   desc_ru="Библиотека для взаимодействия с OpenRazer демоном" | ||||
| } | ||||
|  | ||||
| package_python3-openrazer() { | ||||
|   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/* | ||||
| } | ||||
							
								
								
									
										41
									
								
								razergenie/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								razergenie/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| name='razergenie' | ||||
| version='1.3.0' | ||||
| release='4' | ||||
| 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') | ||||
|  | ||||
| deps=( | ||||
|   'libopenrazer' | ||||
|   'qt6-qtbase' | ||||
|   'python3-openrazer' | ||||
| ) | ||||
| 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/razergenie/**/* | ||||
| } | ||||
							
								
								
									
										25
									
								
								test-70-meson/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								test-70-meson/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| name='test-70-meson' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
| build_deps=( | ||||
|   "meson" | ||||
|   "ninja-build" | ||||
| ) | ||||
|  | ||||
| build() { | ||||
|   >&2 echo "cd $srcdir" | ||||
|   cd "$srcdir" | ||||
|   >&2 echo "meson setup build --prefix=/usr --buildtype=release -Dstrip=true" | ||||
|   meson setup build --prefix=/usr --buildtype=release -Dstrip=true | ||||
|   # ninja -C build -j $(($(nproc) - 1)) | ||||
| } | ||||
|  | ||||
| package() { | ||||
|   # cd "$srcdir" | ||||
|   # meson install -C build --destdir="$pkgdir" | ||||
| } | ||||
							
								
								
									
										29
									
								
								test-81-multiple-packages/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								test-81-multiple-packages/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| basepkg_name='test-81-multiple-packages' | ||||
| name=( | ||||
|   first-package-with-dashes | ||||
|   second-package-with-dashes | ||||
| ) | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='-' | ||||
| homepage='-' | ||||
| maintainer='Ivan Ivanov <example@example.ru>' | ||||
| architectures=('all') | ||||
|  | ||||
| meta_first-package-with-dashes() { | ||||
| 	desc="description first-package-with-dashes" | ||||
| } | ||||
|  | ||||
| meta_second-package-with-dashes() { | ||||
| 	desc="description second-package-with-dashes" | ||||
| } | ||||
|  | ||||
| package_first-package-with-dashes() { | ||||
|     mkdir -p $pkgdir/opt | ||||
|     echo "first-package" > $pkgdir/opt/first-package | ||||
| } | ||||
|  | ||||
| package_second-package-with-dashes() { | ||||
|     mkdir -p $pkgdir/opt | ||||
|     echo "second-package" > $pkgdir/opt/second-package | ||||
| } | ||||
							
								
								
									
										13
									
								
								test-94-app/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								test-94-app/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| name='test-94-app' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='test-94-app' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
| deps=( | ||||
|     'test-94-dep' | ||||
| ) | ||||
| build_deps=( | ||||
|     'test-94-dep' | ||||
| ) | ||||
							
								
								
									
										8
									
								
								test-94-dep/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								test-94-dep/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| name='test-94-dep' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='test-94-dep' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
							
								
								
									
										16
									
								
								test-98-app/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								test-98-app/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| name='test-98-app' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='FOO PKG' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
| build_deps=( | ||||
|   'test-98-multipackage-dep-sub' | ||||
| ) | ||||
|  | ||||
| package() { | ||||
|     mkdir -p "$pkgdir/opt" | ||||
|     echo "FOO-PKG" > "$pkgdir/opt/foo" | ||||
| } | ||||
							
								
								
									
										31
									
								
								test-98-multipackage/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								test-98-multipackage/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| basepkg_name='test-98-multipackage' | ||||
| name=( | ||||
|   test-98-multipackage-dep-sub | ||||
|   test-98-multipackage-dep-sub-foo | ||||
| ) | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
| meta_test-98-multipackage-dep-sub() { | ||||
| 	desc="sub" | ||||
| } | ||||
|  | ||||
| package_test-98-multipackage-dep-sub() { | ||||
|   mkdir -p "$pkgdir/opt" | ||||
|   echo "sub-pkg" > "$pkgdir/opt/sub-pkg" | ||||
| } | ||||
|  | ||||
| meta_test-98-multipackage-dep-sub-foo() { | ||||
| 	desc="sub-foo" | ||||
| } | ||||
|  | ||||
| package_test-98-multipackage-dep-sub-foo() { | ||||
|   mkdir -p "$pkgdir/opt" | ||||
|   echo "sub-foo-pkg" > "$pkgdir/opt/sub-foo-pkg" | ||||
| } | ||||
|  | ||||
|  | ||||
							
								
								
									
										14
									
								
								test-98-multipackage/postinstall.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								test-98-multipackage/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 | ||||
|  | ||||
							
								
								
									
										11
									
								
								test-app-with-lib/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								test-app-with-lib/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| name='test-app-with-lib' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='FOO PKG' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
| deps=( | ||||
|     'test-lib' | ||||
| ) | ||||
|  | ||||
							
								
								
									
										24
									
								
								test-autoreq-autoprov/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								test-autoreq-autoprov/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| name='test-autoreq-autoprov' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='-' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
| auto_req=1 | ||||
| auto_prov=1 | ||||
| auto_req_skiplist_altlinux=( | ||||
|     "/usr/bin/zsh-req" | ||||
|     "/usr/bin/bash-req" | ||||
| ) | ||||
| auto_req_skiplist_fedora=( | ||||
|     "^/usr/bin/zsh-req$" | ||||
|     "^/usr/bin/bash-req$" | ||||
| ) | ||||
|  | ||||
| package() {     | ||||
|     install-binary "$scriptdir/bash-req" bash-req | ||||
|     install-binary "$scriptdir/zsh-req" zsh-req | ||||
|     install-binary "$scriptdir/sh-req" sh-req | ||||
| } | ||||
							
								
								
									
										1
									
								
								test-autoreq-autoprov/bash-req
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										1
									
								
								test-autoreq-autoprov/bash-req
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1 @@ | ||||
| #!/bin/bash | ||||
							
								
								
									
										1
									
								
								test-autoreq-autoprov/sh-req
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test-autoreq-autoprov/sh-req
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| #!/bin/sh | ||||
							
								
								
									
										1
									
								
								test-autoreq-autoprov/zsh-req
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test-autoreq-autoprov/zsh-req
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| #!/bin/zsh | ||||
							
								
								
									
										17
									
								
								test-group-and-summary/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								test-group-and-summary/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| name='test-group-and-summary' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| group="System/Base" | ||||
| summary="Custom summary" | ||||
| desc_en="Long long | ||||
| multiline description" | ||||
| desc_ru="Длинное | ||||
| описание" | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
| package() { | ||||
|     mkdir -p "$pkgdir/opt" | ||||
|     echo "FOO-PKG" > "$pkgdir/opt/foo" | ||||
| } | ||||
							
								
								
									
										8
									
								
								test-lib/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								test-lib/alr.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| name='test-lib' | ||||
| version='1.0.0' | ||||
| release='1' | ||||
| desc='FOO PKG' | ||||
| maintainer='UNKNOWN' | ||||
| architectures=('all') | ||||
| license=('UNKNOWN') | ||||
|  | ||||
		Reference in New Issue
	
	Block a user