summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeinzi2019-07-18 01:20:22 +0200
committerJeinzi2019-07-18 01:20:22 +0200
commit32e80e5dfeadadaa902bc7f5850901567b7d0843 (patch)
treec4a31abd5a172870931ff5ae432cb4b905d2b305
downloadaur-32e80e5dfeadadaa902bc7f5850901567b7d0843.tar.gz
Initial commit.
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD24
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..02b63950a8f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = helpers-for-i3-git
+ pkgdesc = Handy scripts for i3 window manager: smart resize/open new workspace.
+ pkgver = r2.b8681d3
+ pkgrel = 1
+ url = https://github.com/vivien/helpers-for-i3.git
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = i3-wm
+ depends = python
+ depends = python-i3ipc
+ source = helpers-for-i3-git::git+https://github.com/vivien/helpers-for-i3#branch=master
+ sha256sums = SKIP
+
+pkgname = helpers-for-i3-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..cc1557d1abe
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+
+!.gitignore
+!.SRCINFO
+!PKGBUILD \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9334dfd7972
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Jeinzi <jeinzi at gmx dot de>
+
+pkgname='helpers-for-i3-git'
+pkgver=r2.b8681d3
+pkgrel=1
+pkgdesc="Handy scripts for i3 window manager: smart resize/open new workspace."
+arch=('any')
+url="https://github.com/vivien/helpers-for-i3.git"
+license=('GPL3')
+depends=('i3-wm' 'python' 'python-i3ipc')
+makedepends=('git')
+source=("$pkgname::git+https://github.com/vivien/helpers-for-i3#branch=master")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/bin/"
+ cp -v "$srcdir/$pkgname/"{i3-new-workspace,i3-smart-resize} "$pkgdir/usr/bin/"
+ chmod 755 "$pkgdir/usr/bin/"{i3-new-workspace,i3-smart-resize}
+}