summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41f5abe8beed227000428723eea23d7dce63c70b (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
# Maintainer: Niels Huylebroeck <arch@nightwalkers.be>
pkgname=sway-input-config-git
_pkgname=sway-input-config
pkgver=r119.b5e7a4a
pkgrel=1
license=("GPL3")
pkgdesc="Sway Input Configurator"
makedepends=(
  'git'
  'python-setuptools'
)
depends=(
    "python-pyqt6" "python-i3ipc" "sway"
)

arch=("i686" "x86_64")
url="https://github.com/Sunderland93/sway-input-config"
source=("${pkgname%-*}::git+https://github.com/Sunderland93/sway-input-config.git#branch=master")
sha256sums=("SKIP")
provides=("sway-input-config")
conflicts=("sway-input-config")

pkgver() {
    cd "${srcdir}/${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
    cd "${srcdir}/${_pkgname}"
    python setup.py install --skip-build --optimize 1 --root="${pkgdir}"
}