diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8143877981c6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = autotiling-git + pkgdesc = Script for sway and i3 to automatically switch the horizontal / vertical window split orientation + pkgver = r24.6854508 + pkgrel = 1 + url = https://github.com/nwg-piotr/autotiling + arch = x86_64 + license = GPL3 + makedepends = git + depends = python-i3ipc + provides = autotiling + conflicts = autotiling + source = autotiling::git+https://github.com/nwg-piotr/autotiling.git + md5sums = SKIP + +pkgname = autotiling-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..64678ec27b4f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Jason Nader <jason.nader@protonmail.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') +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" + install -D -t "$pkgdir/usr/lib/$_pkgname" autotiling.py + install -D -t "$pkgdir/usr/bin" autotiling +} + |