updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / liferea-indicator / PKGBUILD
blobce0df3c126a7693ad69ef8c0c30e0b4af6990e64
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Eric Bélanger <eric@archlinux.org>
4 _pkgname=liferea
5 pkgname=liferea-indicator
6 pkgver=1.8.0
7 pkgrel=1
8 pkgdesc="A desktop news aggregator for online news feeds and weblogs with Messages Indicator support"
9 arch=('i686' 'x86_64')
10 url="http://liferea.sourceforge.net/"
11 license=('GPL')
12 depends=('gconf' 'libwebkit' 'libnotify' 'libunique' 'json-glib' 'libindicate' 'hicolor-icon-theme')
13 true && depends=('gconf' 'libwebkit' 'libnotify' 'libunique' 'json-glib' 'libindicate-gtk2' 'hicolor-icon-theme')
14 makedepends=('intltool')
15 provides=("liferea=$pkgver")
16 conflicts=('liferea')
17 options=('!libtool' '!emptydirs')
18 install=liferea.install
19 source=(http://downloads.sourceforge.net/sourceforge/liferea/liferea-${pkgver}.tar.gz
20         libindicate-fix.patch)
21 sha1sums=('b731e70128130478207e9059fc9ec33ae7d95358'
22           '217d72ecdcc0cf15b9799311064c642058d6a7c1')
24 build() {
25   cd "${srcdir}/liferea-${pkgver}"
26   patch -Np1 -i "${srcdir}/libindicate-fix.patch"
27   sed -i 's/indicate-0.5/indicate-0.6/
28           s/indicate-gtk-0.5/indicate-gtk-0.6/' configure
30   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-install
31   make
34 package() {
35   cd "${srcdir}/liferea-${pkgver}"
36   make DESTDIR="${pkgdir}" install
37   
38   install -d "${pkgdir}/usr/share/gconf/schemas"
39   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${_pkgname}.schemas" "${pkgdir}"/etc/gconf/schemas/*.schemas
40   rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas
42   mkdir -p "$pkgdir/usr/share/indicators/messages/applications"
43   echo '/usr/share/applications/liferea.desktop' > "$pkgdir/usr/share/indicators/messages/applications/liferea"