# Maintainer: Yigit Sever # Contributor: Fenner Macrae _pkgname=i3-swallow pkgname=$_pkgname-git pkgver=r66.7a9faed 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 swallow.py "${pkgdir}"/usr/bin/swallow install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }