summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7930fe165271d7ec7ba375b0f8041a4530d4d3a6 (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=r24.f2fa178
pkgrel=1
license=("GPL3")
pkgdesc="Sway Input Configurator"
makedepends=(
  'git'
  'python-setuptools'
)
depends=(
    "qt5-wayland" "pyside2" "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}"
}