aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a27521915f00f79f2d01420d9043f20d3d70524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Giuseppe <giuscri@gmail.com>
pkgname=notify-when-done-git
pkgver=...
pkgrel=1
pkgdesc="Send notification in i3 when command in a non-focused workspace finish."
arch=('x86_64')
url="https://github.com/giuscri/notify-when-done-i3"
license=('WTFPL')
depends=('jq' 'i3')
makedepends=('git')
install=notify-when-done-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/nwd-preexec.sh" "$pkgdir/etc/nwd/nwd-preexec.sh"
    install -Dm0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/nwd/LICENSE"
}