summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c6f6277240bf35ca8290546b2d8b5243a23cedf (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=r77.c7f6056
pkgrel=11
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://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"
}