summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0906168caa0e92c43622b7f73d1c6b364ce82277 (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
# Maintainer: Rihards Skuja <rskuja@gmail.com>
_pkgname=when-changed
pkgname=$_pkgname-git
pkgver=0.r62.7a2df66
pkgrel=1
pkgdesc="Execute a command when a file is changed."
arch=('any')
url="https://github.com/joh/when-changed"
license=('BSD3')
depends=('python2' 'watchdog')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=('git+https://github.com/joh/when-changed.git')
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  echo "0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
  cd $_pkgname
  python2 setup.py install --root="$pkgdir" --optimize=1
}