summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddeffedb06e6f72202a20209e1fbe1f21a58fbb6 (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
# Maintainer: Axel McLaren <scm(at)axml(dot)uk>

pkgname=autotype
_commit=f5b6527
_pkgver=1.0.0
pkgver=1.0.0.r6.f5b6527
pkgrel=3
pkgdesc="Unicode-friendly tool for faking key presses to type strings on X11"
arch=('any')
url="https://github.com/gemdude46/autotype"
license=('MIT')
depends=('python' 'python-xlib')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${pkgname}-${_pkgver}::git+https://github.com/gemdude46/autotype#commit=${_commit}")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}-${_pkgver}"

  printf "${_pkgver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}-${_pkgver}"

  python -m build --wheel --no-isolation
}

package() {
  cd "${pkgname}-${_pkgver}"

  python -m installer --destdir="${pkgdir}" dist/*.whl

  install -Dm755 app/autotype "${pkgdir}/usr/bin/autotype"
}