diff options
author | jem | 2019-06-10 15:57:36 +1000 |
---|---|---|
committer | jem | 2019-06-10 15:57:36 +1000 |
commit | a14e1375f710da9bdac24330a113bca1172a2524 (patch) | |
tree | b78765d83f0960bbab1b3dbadf5f62746f886727 | |
download | aur-a14e1375f710da9bdac24330a113bca1172a2524.tar.gz |
init commit for python-easyhid PKGBUILD
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b7f7ce30416a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-easyhid + pkgdesc = simple library for reading/writing to HID devices + pkgver = 0.0.10 + pkgrel = 1 + url = https://github.com/ahtn/python-easyhid + arch = any + license = MIT + makedepends = python + makedepends = python-setuptools + depends = python-cffi + depends = hidapi + provides = python-easyhid + conflicts = python-easyhid + source = python-easyhid-0.0.10.tar.gz::https://github.com/ahtn/python-easyhid/archive/0.0.10.tar.gz + sha512sums = 17f21c16699e45972d9a7a87719e16ec4f60a2a9d0b863a94ac092c585fee682d75adc2cbc3bc5f000a1b8299869526c7644d585bf9ef3a5de653e48d756f75b + +pkgname = python-easyhid + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0d9406411792 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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}" +} |