PKGBUILDs/extra/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-12-18 23:43:05 +00:00
pkgver=0.7
2023-05-14 15:36:30 +00:00
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')
2023-12-18 23:43:05 +00:00
makedepends=('python-build' 'python-installer' 'python-hatchling' '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-12-18 23:43:05 +00:00
sha512sums=('9a9bd42ac0a78455e7c5c472b954ac6761c656d51dc9667def50fd61311280d435b227c5b9519d05287063bbdfad3930598a9f0a8e4ffe4cc7cc1cda37c4462c')
2019-11-16 17:19:55 +00:00
build() {
cd $pkgname-$pkgver
2023-12-18 23:43:05 +00:00
python -m build -wnx
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
2023-12-18 23:43:05 +00:00
python -m installer --destdir="$pkgdir" dist/*.whl
2019-11-16 17:19:55 +00:00
# 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
}