1 # Contributor: Spyros Stathopoulos <foucault.online@gmail.com>
5 pkgdesc="Simple monitor server for pacman and AUR updates"
7 url="https://github.com/foucault/pkgupdate"
10 conflicts=('pkgupdate')
11 backup=('etc/pkgupdate.conf')
12 optdepends=('pygtk: for the gtk+ client'
13 'gtk3: for the gtk+ 3 client'
14 'python-gobject: for the gtk+ 3 client'
15 'gnome-icon-theme: for the gtk+ clients')
16 makedepends=('git' 'docutils')
17 install=('pkgupdate.install')
19 _gitroot="git://github.com/foucault/pkgupdate.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
44 cd "${srcdir}/$_gitname-build"
45 python setup.py install --prefix=/usr --root="${pkgdir}"
46 # gtk client is a python2 script
47 if [ `grep '#!/usr/bin/python$' "${pkgdir}/usr/bin/pkgupdate_gtk.py"` ]; then
48 sed -i -e "s|/usr/bin/python|/usr/bin/python2|" "${pkgdir}/usr/bin/pkgupdate_gtk.py"
50 install -D -m755 "${srcdir}/$_gitname-build/pkgupdate.rc" "${pkgdir}/etc/rc.d/pkgupdate"