PKGBUILDs/community/hid-tools/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

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
2023-05-14 15:36:30 +00:00
pkgver=0.4
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'
2023-01-25 12:21:09 +00:00
depends=('python-parse' 'python-pyudev' 'python-libevdev' 'python-click' 'python-yaml')
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")
2023-05-14 15:36:30 +00:00
sha512sums=('1c98b6d3fe25e8c42f78524040f46b8770fac2e3b3a65425287d50eb9f6e63db1c25c297e73c8afed650dce35e69c47cee3416c6b00cb53e13ff04319e0ddcbc')
2019-11-16 17:19:55 +00:00
build() {
cd $pkgname-$pkgver
python setup.py build
2023-05-03 19:25:29 +00:00
cd doc/source
sphinx-build -b html . _build
2019-11-16 17:19:55 +00:00
}
package() {
cd $pkgname-$pkgver
python setup.py install --root "$pkgdir" --skip-build -O1
# Install documentation
2023-05-03 19:25:29 +00:00
install -dm 755 "$pkgdir"/usr/share/doc/$pkgname/html
cp -r -a --no-preserve=ownership doc/source/_build/* "$pkgdir"/usr/share/doc/$pkgname/html
2019-11-16 17:19:55 +00:00
}