blob: ba0c04635b794da77b42a984f8131dddaf60f686 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Derek J. Clark <derekjohn.clark@gmail.com>
pkgname=handygccs-git
_gitdir=HandyGCCS
pkgver=24.02.r223.5fe467d
pkgrel=1
pkgdesc="Handheld Game Console Controller Support."
arch=('any')
url="https://github.com/ShadowBlip/HandyGCCS"
license=('GPL')
groups=()
depends=('python' 'python-evdev')
optdepends=()
makedepends=('git' 'python' 'python-evdev' 'python-installer' 'python-build'
'python-wheel' 'python-setuptools')
_tag=5fe467df2d1f8b1d4fc221c117bb5a4d63465897
source=("${_gitdir}::git+https://github.com/ShadowBlip/${_gitdir}.git#tag=${_tag}")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_gitdir}"
printf "%s.r%s.%s" $(date '+%y.%m') "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_gitdir}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${_gitdir}"
python -m installer --destdir="$pkgdir" dist/*.whl
mkdir -p ${pkgdir}/usr/lib/systemd/system
install -m644 usr/lib/systemd/system/handycon.service ${pkgdir}/usr/lib/systemd/system
mkdir -p ${pkgdir}/usr/lib/udev/hwdb.d
install -m644 usr/lib/udev/hwdb.d/59-handygccs-ayaneo.hwdb ${pkgdir}/usr/lib/udev/hwdb.d
mkdir -p ${pkgdir}/usr/lib/udev/rules.d
install -m644 usr/lib/udev/rules.d/60-handycon.rules ${pkgdir}/usr/lib/udev/rules.d
}
|