From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- i3-swallow-git/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 i3-swallow-git/PKGBUILD (limited to 'i3-swallow-git/PKGBUILD') diff --git a/i3-swallow-git/PKGBUILD b/i3-swallow-git/PKGBUILD new file mode 100644 index 0000000..30e5eba --- /dev/null +++ b/i3-swallow-git/PKGBUILD @@ -0,0 +1,28 @@ +# 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" +} -- cgit v1.2.3-70-g09d2