updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / liferea-git / PKGBUILD
blob6e804e84365699507acd0b922991831346aaf67c
1 # Contributor: Russ Gibson <russ@russgibson.org>
2 # Maintener: Frederic Bezies <fredbezies@gmail.com>
4 pkgname=liferea-git
5 pkgver=20120101
6 pkgrel=1
7 pkgdesc="A news aggregator for GTK, git version."
8 arch=('i686' 'x86_64')
9 url="http://liferea.sourceforge.net"
10 license=('GPL')
11 groups=()
12 depends=('gtk3' 'gconf' 'libxml2' 'sqlite3' 'libxslt' 'libwebkit' 'libunique' 'json-glib' 'sqlite3' 'libnotify')
13 makedepends=('autoconf' 'intltool' 'git')
14 provides=('liferea')
15 conflicts=('liferea' 'liferea-unstable')
16 replaces=()
17 backup=()
18 options=()
19 install=
20 source=()
21 md5sums=()
22 sha256sums=()
23 noextract=()
25 _gitroot="git://liferea.git.sourceforge.net/gitroot/liferea/liferea"
26 _gitname="liferea"
28 build() {
29   cd "$srcdir"
30   msg "Connecting to GIT server...."
32   if [ -d $_gitname ] ; then
33     cd $_gitname && git pull origin
34     msg "The local files are updated."
35   else
36     git clone $_gitroot $_gitname
37   fi
39   msg "GIT checkout done or server timeout"
40   msg "Starting make..."
42   rm -rf "$srcdir/$_gitname-build"
43   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44   cd "$srcdir/$_gitname-build"
46   autoreconf -i
47   intltoolize
48   ./autogen.sh
49   ./configure --prefix=/usr --disable-schema-install
50   make || return 1
51   make DESTDIR="$pkgdir/" install
53 install -d "${pkgdir}/usr/share/gconf/schemas"
54   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas
55   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
56