summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d940641179241e7fe521d9f119cf9414e850abd (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
# Maintainer: jem <jem ΑΤ seethis DΟΤ link>
pkgname=python-easyhid
pkgver=0.0.10
pkgrel=1
epoch=
pkgdesc="simple library for reading/writing to HID devices"
arch=('any')
url="https://github.com/ahtn/python-easyhid"
license=('MIT')
groups=()
depends=('python-cffi' 'hidapi')
makedepends=('python' 'python-setuptools')
checkdepends=()
optdepends=()
provides=('python-easyhid')
conflicts=('python-easyhid')
replaces=()
backup=()
options=()
install=
changelog=
source=(
    "${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
)
sha512sums=(
    '17f21c16699e45972d9a7a87719e16ec4f60a2a9d0b863a94ac092c585fee682d75adc2cbc3bc5f000a1b8299869526c7644d585bf9ef3a5de653e48d756f75b'
)
noextract=()
validpgpkeys=()

build() {
    cd "${pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}