blob: 2f0478d7eeab9d86de66dbbfa9eaff95022e9907 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Akaash Suresh <https://github.com/Curry>
pkgname=qmk-git
pkgver=0.0.28.r0.gbbc5ffd
pkgrel=1
pkgdesc="CLI tool for customizing supported mechanical keyboards."
arch=('any')
url="https://github.com/qmk/qmk_cli"
license=('MIT')
_branch=qmk_cli
depends=(
'arm-none-eabi-binutils'
'arm-none-eabi-gcc'
'arm-none-eabi-newlib'
'avrdude'
'avr-binutils'
'avr-libc'
'python-appdirs'
'python-argcomplete'
'python-colorama'
'flake8'
'avr-gcc'
'clang'
'dfu-programmer'
'dfu-util'
'diffutils'
'gcc'
'git'
'libusb-compat'
'unzip'
'wget'
'zip'
)
makedepends=('python-setuptools' 'python' 'python-pip')
source=('git+https://github.com/qmk/qmk_cli.git')
sha256sums=('SKIP')
pkgver() {
cd "$_branch"
echo $(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
}
build() {
pip install --no-deps --target="deps" yapf hjson
cd "$_branch"
python setup.py build
}
package() {
sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "$_branch"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
cp -r $srcdir/deps/* $pkgdir/"$sitepackages"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|