summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcecc439d86bf226b667fe1a4557b85aef34fbba (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
# Maintainer: Bernhard Landauer <oberon@manjaro.org>

pkgname=alternating-layouts-git
pkgver=r29.507c84a
pkgrel=1
pkgdesc="Alternating split directions for the i3-wm"
_repo=i3-alternating-layout
url="https://github.com/olemartinorg/$_repo"
arch=('any')
license=('MIT')
depends=('i3-wm'
	'python-i3-py'
	'xorg-util-macros')
conflicts=('alternating-layouts')
makedepends=('git')
install=alternating-layouts.install
source=("git+$url.git")
md5sums=('SKIP')

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

package() {
  cd $_repo
  install -Dm 755 alternating_layouts.py $pkgdir/usr/bin/alternating_layouts.py
}