summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f67a1fa3030ea430081151a04476a5259b0e84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Yigit Sever <yigit at yigitsever dot com>
# Contributor: Fenner Macrae <fmacrae.dev at gmail dot com>

_pkgname=i3-swallow
pkgname=$_pkgname-git
pkgver=r69.6fbc046
pkgrel=1
pkgdesc="Swallow a terminal window after a blocking application is run in i3"
arch=('any')
url="https://github.com/jamesofarrell/i3-swallow"
license=('MIT')
depends=('i3-wm' 'python-i3ipc')
makedepends=('git')
provides=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
md5sums=('SKIP')

pkgver()
{
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/${_pkgname}"
  install -Dm 755 "i3_swallow/swallow.py" "${pkgdir}"/usr/bin/swallow
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}