summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d45bf259ed2608ad8ee8ce2a09c55f15a9095c6f (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
# Maintainer: Giuseppe <giuscri@gmail.com>
pkgname='notify-when-done-i3-git'
pkgver=r30.7b8990f
pkgrel=1
pkgdesc="Get notifications when commands in non-focused i3's window finish."
arch=('x86_64')
url="https://github.com/giuscri/notify-when-done-i3"
license=('WTFPL')
depends=('i3-wm' 'bash-preexec-git' 'libnotify' 'python')
makedepends=('git')
install=nwd-i3-git.install
source=("$pkgname::git+https://github.com/giuscri/notify-when-done-i3.git")
md5sums=('SKIP')

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

package() {
    install -Dm0644 "$srcdir/$pkgname/preexec.sh" "$pkgdir/usr/share/nwd/preexec.sh"
    install -Dm0644 "$srcdir/$pkgname/focused_window.py" "$pkgdir/usr/share/nwd/focused_window.py"
    install -Dm0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/nwd/LICENSE"
}