updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / archup-git / PKGBUILD
blob3d03b761824a7f94a3cdb575e3fd7b25c94d07e6
1 # Contributor: Andre Ericson <de.ericson@gmail.com>
2 pkgname=archup-git
3 pkgver=20110509
4 pkgrel=1
5 pkgdesc="Small and lightweight update-notifier for archlinux."
6 arch=('i686' 'x86_64')
7 url="http://www.nongnu.org/archup"
8 license=('GPL')
9 depends=('pacman' 'libnotify')
10 makedepends=('git' 'libnotify' 'autoconf' 'gzip')
11 source=(libnotify.patch)
12 md5sums=('991604cdea3d7858a9dcfe5dd359f5d1')
13 provides=('archup')
14 conflicts=('archup')
16 _gitroot="git://git.sv.gnu.org/archup.git"
17 _gitname="archup"
19 build() {
20     cd "$srcdir"
21     msg "Connecting to GIT server...."
23     if [ -d $_gitname ] ; then
24         cd $_gitname && git pull origin
25         msg "The local files are updated."
26     else
27         git clone $_gitroot $_gitname
28     fi
30     msg "GIT checkout done or server timeout"
31     msg "Starting make..."
33     rm -rf "$srcdir/$_gitname-build"
34     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35     cd "$srcdir/$_gitname-build/src"
37     patch -p1 < ../../libnotify.patch
38     autoconf || return 1
39     ./configure || return 1
40     make || return 1
41     make DESTDIR=${pkgdir} install || return 1
42