summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b58e4da76e0c8317ac9bb0362c1c7a361feb602d (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
# Maintainer: ahrs <Forward dot to at hotmail dot co dot uk>

pkgname='undistract-me-git'
pkgver=r79.2f8ac25
pkgrel=2
arch=('any')
url="https://github.com/jml/undistract-me"
depends=('libnotify' 'xorg-xprop')
conflicts=('undistract-me')
license=("MIT")
pkgdesc="Notifies you when long-running terminal commands complete"
source=("git+https://github.com/jml/undistract-me.git")
md5sums=('SKIP')
install='undistract-me.install'

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

package() {
  install -D -m644 "$srcdir/undistract-me/long-running.bash" "$pkgdir/usr/share/undistract-me/long-running.bash"
  install -D -m644 "$srcdir/undistract-me/preexec.bash" "$pkgdir/usr/share/undistract-me/preexec.bash"
  install -D -m644 "$srcdir/undistract-me/undistract-me.sh" "$pkgdir/etc/profile.d/undistract-me.sh"
  install -D -m644 "$srcdir/undistract-me/README.md" "$pkgdir/usr/share/doc/undistract-me/README.md"
  install -D -m644 "$srcdir/undistract-me/LICENSE" "$pkgdir/usr/share/licenses/undistract-me/LICENSE"
}