2019-11-16 17:19:55 +00:00
|
|
|
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove makedepend on python-pypandoc
|
|
|
|
|
|
|
|
pkgname=hid-tools
|
2022-12-03 16:54:14 +00:00
|
|
|
pkgver=0.3.1
|
|
|
|
pkgrel=1
|
2019-11-16 17:19:55 +00:00
|
|
|
arch=('any')
|
|
|
|
url='https://gitlab.freedesktop.org/libevdev/hid-tools'
|
|
|
|
license=('GPL2')
|
|
|
|
pkgdesc='Python scripts to manipulate HID data'
|
|
|
|
depends=('python-parse' 'python-pyudev')
|
2022-12-03 16:54:14 +00:00
|
|
|
makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme' 'python-sphinxcontrib-apidoc')
|
2019-11-16 17:19:55 +00:00
|
|
|
source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
|
2022-12-03 16:54:14 +00:00
|
|
|
sha512sums=('fb2f08ea02c7e615244b3691fc26778343a9aee8bddc593f415547a45c8e99831c5a9e574b1e55c965f2e9b7753a67dd2cf3a5106e595c88dabe6a6e3c4f1d8c')
|
2019-11-16 17:19:55 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
|
|
|
|
python setup.py build
|
2022-12-03 16:54:14 +00:00
|
|
|
python setup.py build_sphinx
|
2019-11-16 17:19:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
|
|
|
|
python setup.py install --root "$pkgdir" --skip-build -O1
|
|
|
|
|
|
|
|
# Install documentation
|
|
|
|
install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
|
2022-12-03 16:54:14 +00:00
|
|
|
cp -r -a --no-preserve=ownership build/sphinx/html "$pkgdir"/usr/share/doc/$pkgname
|
2019-11-16 17:19:55 +00:00
|
|
|
}
|