diff options
Diffstat (limited to 'i3-swallow-git/PKGBUILD')
-rw-r--r-- | i3-swallow-git/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
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 | ||
5 | pkgname=$_pkgname-git | ||
6 | pkgver=r69.6fbc046 | ||
7 | pkgrel=1 | ||
8 | pkgdesc="Swallow a terminal window after a blocking application is run in i3" | ||
9 | arch=('any') | ||
10 | url="https://github.com/jamesofarrell/i3-swallow" | ||
11 | license=('MIT') | ||
12 | depends=('i3-wm' 'python-i3ipc') | ||
13 | makedepends=('git') | ||
14 | provides=("${_pkgname}") | ||
15 | source=("${_pkgname}::git+${url}.git") | ||
16 | md5sums=('SKIP') | ||
17 | |||
18 | pkgver() | ||
19 | { | ||
20 | cd "$_pkgname" | ||
21 | printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
22 | } | ||
23 | |||
24 | package() { | ||
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 | } | ||