community/hid-tools to 0.3.1-4

This commit is contained in:
Kevin Mihelich 2023-05-03 19:25:29 +00:00
parent b2c1bfed94
commit 437d78473a

View file

@ -5,7 +5,7 @@
pkgname=hid-tools
pkgver=0.3.1
pkgrel=2
pkgrel=4
arch=('any')
url='https://gitlab.freedesktop.org/libevdev/hid-tools'
license=('GPL2')
@ -19,7 +19,10 @@ build() {
cd $pkgname-$pkgver
python setup.py build
python setup.py build_sphinx
cd doc/source
sphinx-build -b html . _build
}
package() {
@ -28,6 +31,6 @@ package() {
python setup.py install --root "$pkgdir" --skip-build -O1
# Install documentation
install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
cp -r -a --no-preserve=ownership build/sphinx/html "$pkgdir"/usr/share/doc/$pkgname
install -dm 755 "$pkgdir"/usr/share/doc/$pkgname/html
cp -r -a --no-preserve=ownership doc/source/_build/* "$pkgdir"/usr/share/doc/$pkgname/html
}