summaryrefslogtreecommitdiffstats
path: root/w3watch-git/PKGBUILD
blob: dbae2bb7f271873b6e6f906b5e76f09aaf1ab198 (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
26
27
28
29
30
31
32
33
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

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"
}