commit e738c97aa3130ecc74c5651420fce3b44e901fd9 Author: antheas Date: Wed Dec 13 22:54:12 2023 +0100 add initial stable version of hhd diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..309f9c1cfad8 --- /dev/null +++ b/.SRCINFO @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..31d27563afeb --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8b283d71a254 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Antheas Kapenekakis +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 +} \ No newline at end of file