summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7704a900783a03f10f0a2a7ffa39fc053df3099c (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
41
42
43
# Maintainer: Tomasz PakuĊ‚a <forest10pl@gmail.com>
_reponame=boxflat
pkgname=boxflat-git
pkgver=0.1.0
pkgrel=1
pkgdesc="Adjust your Moza Racing gear settings"
arch=('x86_64')
url="https://github.com/Lawstorant/boxflat"
license=('GPL3')
depends=(
	python
	python-yaml
	python-pyserial
	python-gobject
	python-cairo
	gtk4
	libadwaita
	udev
)
makedepends=(
  git
)
source=(
  git+https://github.com/Lawstorant/boxflat
)
sha256sums=(
  'SKIP'
)

pkgver() {
  cd "$srcdir/$_reponame"
  git describe --long --tags | cut -d "-" -f 1-2 | tr "-" "r"
}

package() {
  cd "$srcdir/$_reponame" || exit 1
  ./install.sh add-prefix "${pkgdir}" no-udev
}

post_install() {
	udevadm control --reload
	udevadm trigger --attr-match=subsystem=tty
}