summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 805398053b4db3a217351649f4b8695e8c0765e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: saneki <s@neki.me>
pkgname=i3-swap-git
_pkgname=i3-swap
pkgver=9.84c27eb
pkgrel=1
pkgdesc="i3 script to swap workspaces with a dual monitor setup."
arch=("any")
url="https://github.com/saneki/i3-swap"
license=("GPL-3.0")
makedepends=(git)
depends=(python-i3-git)
source=("git://github.com/saneki/${_pkgname}.git")
sha256sums=("SKIP")

pkgver() {
  cd "${_pkgname}"
  echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
  mkdir -p "${pkgdir}/usr/bin"
  install -Dm0755 "${_pkgname}/i3-swap" "${pkgdir}/usr/bin/i3-swap"
}