add initial stable version of hhd

This commit is contained in:
antheas 2023-12-13 22:54:12 +01:00
commit e738c97aa3
3 changed files with 54 additions and 0 deletions

20
.SRCINFO Normal file
View file

@ -0,0 +1,20 @@
pkgbase = hhd
pkgdesc = Handheld Daemon. A tool for managing the quirks of handheld devices.
pkgver = 0.1.2
pkgrel = 1
url = https://github.com/antheas/hhd
arch = x86_64
license = MIT
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
depends = python-evdev
depends = python-rich
depends = python-yaml
provides = hhd
source = https://pypi.python.org/packages/source/h/hhd/hhd-0.1.2.tar.gz
sha512sums = SKIP
pkgname = hhd

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

30
PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: Antheas Kapenekakis <aur at antheas dot dev>
pkgname=hhd
pkgver=0.1.2
pkgrel=1
pkgdesc='Handheld Daemon. A tool for managing the quirks of handheld devices.'
arch=('x86_64')
url='https://github.com/antheas/hhd'
license=('MIT')
depends=('python' 'python-evdev' 'python-rich' 'python-yaml')
provides=('hhd')
# optdepends=('hhd-user: allows running as a user service')
makedepends=('python-'{'build','installer','setuptools','wheel'})
source=("https://pypi.python.org/packages/source/h/hhd/hhd-${pkgver}.tar.gz")
sha512sums=('SKIP')
build() {
cd "hhd-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "hhd-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
# Install minimally necessary rules for running as a system service
mkdir -p ${pkgdir}/usr/lib/udev/rules.d/
install -m644 usr/lib/udev/rules.d/83-hhd.rules ${pkgdir}/usr/lib/udev/rules.d/83-hhd.rules
mkdir -p ${pkgdir}/usr/lib/systemd/system/
install -m644 usr/lib/systemd/system/hhd@.service ${pkgdir}/usr/lib/systemd/system/hhd@.service
}