summaryrefslogtreecommitdiffstats
path: root/i3-swallow-git
diff options
context:
space:
mode:
Diffstat (limited to 'i3-swallow-git')
-rw-r--r--i3-swallow-git/.SRCINFO15
-rw-r--r--i3-swallow-git/PKGBUILD28
2 files changed, 43 insertions, 0 deletions
diff --git a/i3-swallow-git/.SRCINFO b/i3-swallow-git/.SRCINFO
new file mode 100644
index 0000000..8b03b0d
--- /dev/null
+++ b/i3-swallow-git/.SRCINFO
@@ -0,0 +1,15 @@
1pkgbase = i3-swallow-git
2 pkgdesc = Swallow a terminal window after a blocking application is run in i3
3 pkgver = r69.6fbc046
4 pkgrel = 1
5 url = https://github.com/jamesofarrell/i3-swallow
6 arch = any
7 license = MIT
8 makedepends = git
9 depends = i3-wm
10 depends = python-i3ipc
11 provides = i3-swallow
12 source = i3-swallow::git+https://github.com/jamesofarrell/i3-swallow.git
13 md5sums = SKIP
14
15pkgname = i3-swallow-git
diff --git a/i3-swallow-git/PKGBUILD b/i3-swallow-git/PKGBUILD
new file mode 100644
index 0000000..5f67a1f
--- /dev/null
+++ b/i3-swallow-git/PKGBUILD
@@ -0,0 +1,28 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: Fenner Macrae <fmacrae.dev at gmail dot com>
3
4_pkgname=i3-swallow
5pkgname=$_pkgname-git
6pkgver=r69.6fbc046
7pkgrel=1
8pkgdesc="Swallow a terminal window after a blocking application is run in i3"
9arch=('any')
10url="https://github.com/jamesofarrell/i3-swallow"
11license=('MIT')
12depends=('i3-wm' 'python-i3ipc')
13makedepends=('git')
14provides=("${_pkgname}")
15source=("${_pkgname}::git+${url}.git")
16md5sums=('SKIP')
17
18pkgver()
19{
20 cd "$_pkgname"
21 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
22}
23
24package() {
25 cd "$srcdir/${_pkgname}"
26 install -Dm 755 "i3_swallow/swallow.py" "${pkgdir}"/usr/bin/swallow
27 install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
28}