summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa3e8007fa950232f36e9707aebe127320cb0646 (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
# Maintainer: Johannes Wienke <languitar@semipol.de>

pkgname=i3-workspace-switch-git
pkgver=0.2.dev0.gcb7f6de
pkgrel=2
pkgdesc="Utility to allow switching workspaces by their position on the output"
arch=(any)
url="https://github.com/languitar/i3-workspace-switch"
license=('LGPL3')
depends=('python2' 'python-i3-py')
makedepends=('git' 'python-setuptools')
provides=('i3-workspace-switch')
conflicts=('i3-workspace-switch')
source=("${pkgname}::git://github.com/languitar/i3-workspace-switch.git")
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "%s.g%s" "$(python3 setup.py --version 2> /dev/null)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$pkgname"
    python3 setup.py install --root="$pkgdir/"
}