blob: a5e9304adbf507a76ee274dd3946d6dcfefcb6e5 (
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
|
# Maintainer: jem <jem ΑΤ seethis DΟΤ link>
pkgname=keyplus-git
pkgver=0.3.3.r77.gb9cc778
pkgrel=1
epoch=
pkgdesc="keyboard firmware library and tools"
arch=('any')
url="https://github.com/ahtn/keyplus/"
license=('MIT')
groups=()
depends=(
'python-ruamel-yaml' 'python-intelhex' 'python-hexdump'
'python-colorama' 'python-cstruct'
'python-easyhid' 'python-xusbboot' 'python-efm8boot' 'python-kp_boot_32u4'
)
makedepends=('git' 'python')
checkdepends=()
optdepends=('keyplusd-git: keyplus emulator support')
provides=('keyplus')
conflicts=('keyplus')
replaces=()
backup=()
options=()
install=
changelog=
source=(
'git+https://github.com/ahtn/keyplus.git'
)
md5sums=(
'SKIP'
)
noextract=()
validpgpkeys=()
_srcdir="keyplus/host-software"
pkgver() {
cd $_srcdir
git describe --long --tags --match "*.*.*" | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_srcdir
python setup.py build
}
package() {
cd $_srcdir
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm 644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|