aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-server-hwcursor-gamma
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-24 02:05:54 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-24 02:05:54 +0200
commit163ecfd98d0143c972ecd377933255df3fa27f0e (patch)
tree5cfa30e89ce7c690a6940f0f6690559dec00a6eb /xorg-server-hwcursor-gamma
parentadd xorg-server-hwcursor-gamma (diff)
downloadaur-packages-163ecfd98d0143c972ecd377933255df3fa27f0e.tar.gz
aur-packages-163ecfd98d0143c972ecd377933255df3fa27f0e.tar.bz2
aur-packages-163ecfd98d0143c972ecd377933255df3fa27f0e.tar.xz
add watch file for xorg-server-hwcursor-gamma
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'xorg-server-hwcursor-gamma')
-rwxr-xr-xxorg-server-hwcursor-gamma/watch25
1 files changed, 25 insertions, 0 deletions
diff --git a/xorg-server-hwcursor-gamma/watch b/xorg-server-hwcursor-gamma/watch
new file mode 100755
index 0000000..ec1e783
--- /dev/null
+++ b/xorg-server-hwcursor-gamma/watch
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+[ -f 'PKGBUILD?h=packages%2Fxorg-server' ] && rm 'PKGBUILD?h=packages%2Fxorg-server'
+
+wget 'https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/xorg-server' >/dev/null 2>/dev/null
+
+mv 'PKGBUILD?h=packages%2Fxorg-server' PKGBUILD.upstream.new
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ grep ^pkg < PKGBUILD.upstream.new | md5sum > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ diff PKGBUILD.upstream.{old,new} > PKGBUILD.upstream.diff
+ mv PKGBUILD.upstream.{new,old}
+ echo 'xorg-server-hwcursor-gamma'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'xorg-server-hwcursor-gamma (unfetchable)'
+fi
+