[arch-commits] Commit in qmk/repos/community-any (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at gemini.archlinux.org
Sat Oct 30 20:27:32 UTC 2021
Date: Saturday, October 30, 2021 @ 20:27:32
Author: foxboron
Revision: 1035011
archrelease: copy trunk to community-any
Added:
qmk/repos/community-any/PKGBUILD
(from rev 1035010, qmk/trunk/PKGBUILD)
Deleted:
qmk/repos/community-any/PKGBUILD
----------+
PKGBUILD | 87 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 44 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-30 20:27:26 UTC (rev 1035010)
+++ PKGBUILD 2021-10-30 20:27:32 UTC (rev 1035011)
@@ -1,43 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Akaash Suresh <https://github.com/Curry>
-# Contributor: Batuhan Baserdem <lastname dot firstname at gmail>
-
-pkgname=qmk
-pkgver=0.2.2
-_qmk_pkgver=0.13.26
-pkgrel=1
-pkgdesc="CLI tool for customizing supported mechanical keyboards."
-arch=('any')
-url="https://github.com/qmk/qmk_cli"
-license=('MIT')
-depends=('python-appdirs' 'python-argcomplete' 'python-colorama'
- 'python-milc' 'python-dotty-dict' 'python-jsonschema' 'git'
- 'avr-gcc' 'arm-none-eabi-gcc' 'avr-libc'
- 'arm-none-eabi-binutils' 'arm-none-eabi-newlib' 'avr-binutils'
- 'dfu-programmer' 'dfu-util' 'avrdude' 'python-hjson' 'python-pygments'
- 'python-hid' 'python-pyusb')
-makedepends=('python-setuptools')
-optdepends=('gcc'
- 'libffi'
- 'libusb-compat'
- 'clang: chibios-upgrader'
- 'zip: some distribution script'
- 'wget: some update scripts'
- 'diffutils: some update scripts')
-source=("https://files.pythonhosted.org/packages/source/q/qmk/qmk-${pkgver}.tar.gz"
- "50-qmk.rules_${pkgver}::https://raw.githubusercontent.com/qmk/qmk_firmware/${_qmk_pkgver}/util/udev/50-qmk.rules")
-sha256sums=('1d5ab822d61692e5608c7268c588b1a6630159d9c4354e0010d220cb89d28ea2'
- '6503d05a8acae64c93ddce7ae814ba6cd20cd9c4d4501aad93bb0b9ccf427fed')
-
-build() {
- cd "${pkgname}-${pkgver}"
- python setup.py build
-}
-
-package() {
- cd "${pkgname}-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
- install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -d "${pkgdir}/usr/lib/udev/rules.d"
- install -Dm644 ../"50-qmk.rules_${pkgver}" "${pkgdir}/usr/lib/udev/rules.d/50-qmk.rules"
-}
Copied: qmk/repos/community-any/PKGBUILD (from rev 1035010, qmk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-30 20:27:32 UTC (rev 1035011)
@@ -0,0 +1,44 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Akaash Suresh <https://github.com/Curry>
+# Contributor: Batuhan Baserdem <lastname dot firstname at gmail>
+
+pkgname=qmk
+pkgver=1.0.0
+_qmk_udev_pkgver=0.1.1
+pkgrel=1
+pkgdesc="CLI tool for customizing supported mechanical keyboards."
+arch=('any')
+url="https://github.com/qmk/qmk_cli"
+license=('MIT')
+depends=('python-appdirs' 'python-argcomplete' 'python-colorama'
+ 'python-milc' 'python-dotty-dict' 'python-jsonschema' 'git'
+ 'avr-gcc' 'arm-none-eabi-gcc' 'avr-libc'
+ 'arm-none-eabi-binutils' 'arm-none-eabi-newlib' 'avr-binutils'
+ 'dfu-programmer' 'dfu-util' 'avrdude' 'python-hjson' 'python-pygments'
+ 'python-hid' 'python-pyusb')
+makedepends=('python-build' 'python-install' 'python-wheel')
+optdepends=('gcc'
+ 'libffi'
+ 'libusb-compat'
+ 'clang: chibios-upgrader'
+ 'zip: some distribution script'
+ 'wget: some update scripts'
+ 'diffutils: some update scripts')
+source=("https://files.pythonhosted.org/packages/source/q/qmk/qmk-${pkgver}.tar.gz"
+ "qmk-udev-${_qmk_udev_pkgver}.tar.gz::https://github.com/qmk/qmk_udev/archive/refs/tags/v${_qmk_udev_pkgver}.tar.gz")
+sha256sums=('da62eec73c4548cc37b0b9be3937202dc3a301dc2f2663610ecca751a610f9ca'
+ 'e6cde001890e1d030d13bbe18799b76754aaea8a6d1309ce8c7956d713714920')
+
+build() {
+ make -C qmk_udev-${_qmk_udev_pkgver}
+ cd "${pkgname}-${pkgver}"
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+ make -C qmk_udev-${_qmk_udev_pkgver} DESTDIR="$pkgdir" PREFIX=/usr install
+ cd "${pkgname}-${pkgver}"
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+ chmod +x "$pkgdir"/usr/bin/*
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list