updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / liferea-unity / PKGBUILD
blobef227d9dc1b07c1b78b1eba77150386befc48b4a
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Eric Bélanger <eric@archlinux.org>
4 _pkgname=liferea
5 pkgname=liferea-unity
6 pkgver=1.6.7
7 pkgrel=1
8 pkgdesc="A desktop news aggregator for online news feeds and weblogs with Unity integration"
9 arch=('i686' 'x86_64')
10 url="http://liferea.sourceforge.net/"
11 license=('GPL')
12 depends=('gconf' 'libwebkit' 'libglade' 'networkmanager' 'libindicate' 'libunity' 'hicolor-icon-theme')
13 true && depends=('gconf' 'libwebkit' 'libglade' 'networkmanager' 'libindicate-gtk2' 'libunity' 'hicolor-icon-theme')
14 makedepends=('pkg-config' 'intltool' 'lua' 'libnotify')
15 optdepends=('lua: for lua scripting support'
16             'libnotify: for notification support')
17 provides=("liferea=$pkgver")
18 conflicts=('liferea')
19 options=('!libtool' '!emptydirs')
20 install=liferea.install
21 source=(http://downloads.sourceforge.net/sourceforge/liferea/liferea-${pkgver}.tar.gz
22         fix_systray_behavior
23         notification-append
24         gtk-status-icon.patch
25         libindicate.patch
26         libunity.patch
27         libnotify.patch)
28 sha1sums=('9ca2d640499dde32cd9fe83b8a6081f3628e5c0c'
29           '750c136e796ab51d5cf3c30cdad4e84a0ed1c385'
30           'e09a6f93a8c4f41bc5dc37e8542cc701a462ad01'
31           'ded7d74fceeef78b6987868a2b16f358dba5d9b3'
32           'f29235a23a4f67ed1fef7d304b0a58846eb72ede'
33           '500896d29baccead284f194eea999a7c4f94184a'
34           '1ec6d093d2b50fc47250600d488314b293272e11')
36 build() {
37   cd "${srcdir}/liferea-${pkgver}"
38   patch -Np1 -i "$srcdir/fix_systray_behavior"
39   patch -Np1 -i "$srcdir/notification-append"
40   patch -Np1 -i "$srcdir/gtk-status-icon.patch"
41   patch -Np1 -i "$srcdir/libindicate.patch"
42   patch -Np1 -i "$srcdir/libunity.patch"
43   patch -Np1 -i "$srcdir/libnotify.patch"
45   autoreconf -fi
46   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-install
47   make
50 package() {
51   cd "${srcdir}/liferea-${pkgver}"
52   make DESTDIR="${pkgdir}" install
53   
54   install -d "${pkgdir}/usr/share/gconf/schemas"
55   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${_pkgname}.schemas" "${pkgdir}"/etc/gconf/schemas/*.schemas
56   rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas
58   mkdir -p "$pkgdir/usr/share/indicators/messages/applications"
59   echo '/usr/share/applications/liferea.desktop' > "$pkgdir/usr/share/indicators/messages/applications/liferea"