summaryrefslogtreecommitdiff
path: root/pcr/entr/PKGBUILD
blob: 0dcb20b72443a2303bcc47115aaf23a4053859a1 (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
# Maintainer: Veeti Paananen <veeti.paananen@rojekti.fi>
pkgname=entr
pkgver=3.2
pkgrel=1
pkgdesc="Run arbitrary commands when files change"
arch=('i686' 'x86_64' 'armv7h')
url="http://entrproject.org/"
license=('custom:ISC', 'custom:BSD2')
depends=('glibc')
source=("http://entrproject.org/code/entr-$pkgver.tar.gz")
sha256sums=('b1eee00afbeccf03010c1c557436854be6aaf0ef9b72ab8d44b94affdd7d7146')

# bad tar
_srcdir='eradman-entr-c20e34ec153a'

build() {
  cd "$srcdir/$_srcdir"

  ./configure
  make
}

check() {
  cd "$srcdir/$_srcdir"

  make -k test
}

package() {
  cd "$srcdir/$_srcdir"

  make PREFIX="$pkgdir/usr" install
  install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}