updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / gtk-feed-git / PKGBUILD
blobdb05eca5cf554e2a9ce4d3b2a3b3bd7fbe2f9a05
1 # Contributor: Henri Häkkinen <henux@users.sourceforge.net>
3 pkgname=gtk-feed-git
4 pkgver=
5 pkgrel=3
6 pkgdesc="A lightweight GTK+ 2.0 feed reader."
7 arch=('i686' 'x86_64')
8 url="http://henux.nor.fi/projects/gtk-feed.php"
9 license=('GPL')
10 depends=('gtk2' 'libxml2')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/henux/gtk-feed.git"
18 _gitname="gtk-feed"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git-pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -r "$srcdir/$_gitname-build"
35   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   ./autogen.sh
39   ./configure --prefix=/usr
40   make || return 1
41   make DESTDIR="$pkgdir/" install