# Maintainer: Pierre Schmitz pkgname=w3watch-git pkgver=20100122 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" }