summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d27d7e5634b9ecbe185217776f40c84e5ed7bdb (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
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Markus Hartung <mail@hartmark.se>

_pkgname=entr
pkgname=entr-git
pkgver=r503.4482030
pkgrel=1
pkgdesc="Run arbitrary commands when files change."
arch=('i686' 'x86_64')
url="http://eradman.com/entrproject"
license=('MIT')
depends=('glibc')
optdepends=()
makedepends=('git')
conflicts=('entr')
provides=("$_pkgname")
source=(
  "git+https://github.com/eradman/entr.git"
)
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/entr"
  ./configure
  make test
  make
}

package() {
  cd "$srcdir/entr"
  install -Dm755 entr "$pkgdir/usr/bin/entr"
  install -Dm644 entr.1 "$pkgdir/usr/share/man/man1/entr.1"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/entr-git/LICENSE"
}

# vim:set ts=2 sw=2 et: