summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 004b50578dd8a2dc1d18abfd0366fe8bcde9964c (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Stefan Dimitrijevic <stefanstele95@hotmail.com>

pkgname='linvam-git'
pkgver=0.7.0
pkgrel=2
pkgdesc='Linux voice activated macros'
arch=('x86_64')
url='https://github.com/stele95/LinVAM'
license=('GPL3')
makedepends=(
  'python'
  'git'
)
depends=(
  'xorg-xinput'
  'python'
  'python-pyqt6'
  'python-srt'
  'python-requests'
  'python-tqdm'
  'python-sounddevice'
  'python-vosk'
  'ffmpeg'
  'ydotool'
)
provides=(
  'linvam'
  'linvamrun'
)
conflicts=(
  'linvam'
  'linvamrun'
)
source=('git+https://github.com/stele95/LinVAM.git')
sha256sums=('SKIP')
install=linvam.install

pkgver() {
  cd LinVAM
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/LinVAM"
  python setup.py build
}

package_linvam-git() {
  pkgdesc+=' (GIT version)'
  cd "${srcdir}/LinVAM"
  export PYTHONHASHSEED=0
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install LinVAM.desktop -Dm644 "$pkgdir/usr/share/applications/LinVAM.desktop"
  install LICENSE.txt -Dm644 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
  # install rules/12-input.rules -Dm644 "$pkgdir/etc/udev/rules.d/12-input.rules"
  # install rules/50-uinput.rules -Dm644 "$pkgdir/etc/udev/rules.d/50-uinput.rules"
  install rules/80-uinput.rules -Dm644 "$pkgdir/etc/udev/rules.d/80-uinput.rules"
}