summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRihards Skuja2016-12-21 15:50:35 +0200
committerRihards Skuja2016-12-21 15:50:35 +0200
commit3b82d7f8a9866d1bb9db753dde025ab426eec56e (patch)
treec1a0d18600ba3b16e3e87ee3bf7ecb108f9c8f9a
downloadaur-3b82d7f8a9866d1bb9db753dde025ab426eec56e.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f8d428902ab
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = when-changed-git
+ pkgdesc = Execute a command when a file is changed.
+ pkgver = 0.r62.7a2df66
+ pkgrel = 1
+ url = https://github.com/joh/when-changed
+ arch = any
+ license = BSD3
+ makedepends = git
+ depends = python2
+ depends = watchdog
+ provides = when-changed
+ conflicts = when-changed
+ source = git+https://github.com/joh/when-changed.git
+ sha256sums = SKIP
+
+pkgname = when-changed-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0906168caa0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}