summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6c1af8e95796768ec77ae7809e60fe40f7fd9da (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
# Maintainer: Jason Nader <jason.nader@protonmail.com>
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
pkgname=('autotiling-git')
_pkgname=autotiling
pkgver=r24.6854508
pkgrel=1
pkgdesc="Script for sway and i3 to automatically switch the horizontal / vertical window split orientation"
arch=('x86_64')
url="https://github.com/nwg-piotr/autotiling"
license=('GPL3')
depends=('python-i3ipc')
makedepends=('git' 'python-setuptools')
source=("${pkgname%-*}::git+https://github.com/nwg-piotr/autotiling.git")
md5sums=('SKIP')
provides=("autotiling")
conflicts=("autotiling")

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

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