From 5c68a85ffc09af00379d481c751c10c7e932b6fc Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 3 Sep 2009 00:37:22 +0200 Subject: new packages Signed-off-by: Florian Pritz --- w3watch-git/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 w3watch-git/PKGBUILD (limited to 'w3watch-git/PKGBUILD') diff --git a/w3watch-git/PKGBUILD b/w3watch-git/PKGBUILD new file mode 100644 index 0000000..6c376dc --- /dev/null +++ b/w3watch-git/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Pierre Schmitz + +pkgname=w3watch-git +pkgver=20090829 +pkgrel=1 +pkgdesc='Watch the web and get notified on updates' +arch=('any') +url='http://git.archlinux.de/w3watch/' +depends=('bash' 'lynx' 'awk' 'diffutils' 'coreutils' 'grep') +license=('GPL') + +_gitroot='http://git.archlinux.de/~pierre/w3watch.git' +_gitname='w3watch' + +build() { + cd ${srcdir} + msg 'Connecting to GIT server....' + + if [ -d $_gitname ] ; then + pushd $_gitname && git pull origin + msg 'The local files are updated.' + popd + else + git clone $_gitroot + fi + + msg 'GIT checkout done or server timeout' + msg 'Starting make...' + install -D -m755 "${_gitname}/w3watch" \ + "${pkgdir}/usr/bin/w3watch" + install -D -m644 "${_gitname}/config.sample" \ + "${pkgdir}/usr/share/doc/w3watch/config.sample" +} -- cgit v1.2.3-24-g4f1b