diff --git a/qmk-cli/alr.sh b/qmk-cli/alr.sh index 2ebb2f0..8f3ff60 100644 --- a/qmk-cli/alr.sh +++ b/qmk-cli/alr.sh @@ -1,9 +1,11 @@ name='qmk-cli' version='1.1.8' -release='2' -desc='CLI tool for customizing supported mechanical keyboards.' +release='3' +desc='CLI tool for customizing supported mechanical keyboards' +desc_ru='Утилита командной строки для настройки механических клавиатур' homepage='https://github.com/qmk/qmk_cli' -maintainer="Евгений Храмов " +maintainer='Evgeny Khramov ' +maintainer_ru='Евгений Храмов ' architectures=('amd64') license=('MIT') provides=('qmk') @@ -35,11 +37,124 @@ deps=( 'wget' 'zip' ) -build_deps=( - 'python' - 'python3-build' - 'python3-pip' +deps_alt=( + 'arm-none-eabi-binutils' + 'arm-none-eabi-gcc' + 'arm-none-eabi-newlib' + 'avr-binutils' + 'avr-gcc' + 'avr-libc' + 'avrdude' + 'clang' + 'dfu-programmer' + 'dfu-util' + 'diffutils' + 'python3-module-flake8' + 'gcc' + 'git' + 'libusb' + 'python3-module-dotty-dict' + 'python3-module-hidapi' + 'python3-module-hjson' + 'python3-module-jsonschema' + 'python3-module-milc' + 'python3-module-pyusb' + 'unzip' + 'wget' + 'zip' ) +deps_arch=( + 'arm-none-eabi-binutils' + 'arm-none-eabi-gcc' + 'arm-none-eabi-newlib' + 'avr-binutils' + 'avr-gcc' + 'avr-libc' + 'avrdude' + 'clang' + 'dfu-programmer' + 'dfu-util' + 'diffutils' + 'python-flake8' + 'gcc' + 'git' + 'libusb' + 'python-dotty-dict' + 'python-hidapi' + 'python-hjson' + 'python-jsonschema' + 'python-milc' + 'python-pyusb' + 'unzip' + 'wget' + 'zip' +) +deps_debian=( + 'gcc-arm-none-eabi' + 'binutils-arm-none-eabi' + 'libnewlib-arm-none-eabi' + 'avr-libc' + 'gcc-avr' + 'binutils-avr' + 'avrdude' + 'clang' + 'dfu-programmer' + 'dfu-util' + 'diffutils' + 'flake8' + 'gcc' + 'git' + 'libusb-1.0-0' + 'python3-dotty-dict' + 'python3-hidapi' + 'python3-hjson' + 'python3-jsonschema' + 'python3-milc' + 'python3-usb' + 'unzip' + 'wget' + 'zip' +) +deps_fedora=("${deps[@]}") +deps_redos=("${deps_fedora[@]}") +deps_rhel=("${deps_fedora[@]}") +deps_rosa=("${deps_fedora[@]}") +deps_alpine=( + 'arm-none-eabi-binutils' + 'arm-none-eabi-gcc' + 'arm-none-eabi-newlib' + 'avr-binutils' + 'avr-gcc' + 'avr-libc' + 'avrdude' + 'clang' + 'dfu-programmer' + 'dfu-util' + 'diffutils' + 'py3-flake8' + 'gcc' + 'git' + 'libusb' + 'py3-dotty-dict' + 'py3-hidapi' + 'py3-hjson' + 'py3-jsonschema' + 'py3-milc' + 'py3-pyusb' + 'unzip' + 'wget' + 'zip' +) +build_deps=('python3' 'python3-build' 'python3-pip') + +build_deps_alt=('python3' 'python3-module-build' 'python3-module-pip') +build_deps_arch=('python' 'python-build' 'python-pip') +build_deps_debian=('python3' 'python3-build' 'python3-pip') +build_deps_fedora=("${build_deps[@]}") +build_deps_redos=("${build_deps_fedora[@]}") +build_deps_rhel=("${build_deps_fedora[@]}") +build_deps_rosa=("${build_deps_fedora[@]}") +build_deps_alpine=('python3' 'py3-build' 'py3-pip') sources=("git+https://github.com/qmk/qmk_cli.git" "https://raw.githubusercontent.com/qmk/qmk_firmware/master/util/udev/50-qmk.rules") @@ -59,4 +174,11 @@ package() { install-license ./LICENSE ${name}/LICENSE install -d "${pkgdir}/usr/lib/udev/rules.d" install -Dm644 "${srcdir}/50-qmk.rules" "${pkgdir}/usr/lib/udev/rules.d/50-qmk.rules" -} \ No newline at end of file +} + +files() { + files-find-bin + files-find "./usr/lib/python3.*/site-packages/qmk*" + echo ./usr/lib/udev/rules.d/50-qmk.rules + files-find-share-license qmk-cli +}