mirror of
https://github.com/archlinux/aur.git
synced 2026-02-17 17:52:50 +01:00
add initial stable version of hhd
This commit is contained in:
commit
e738c97aa3
3 changed files with 54 additions and 0 deletions
20
.SRCINFO
Normal file
20
.SRCINFO
Normal 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
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
*
|
||||
!.gitignore
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
||||
30
PKGBUILD
Normal file
30
PKGBUILD
Normal 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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue