1 # Maintainer: György Balló <ballogy@freestart.hu>
6 pkgdesc="Microblogging client for GNOME, which supports Twitter, Identi.ca, StatusNet, Facebook, Flickr, Digg, FriendFeed and Qaiku with Unity integration"
8 url="http://gwibber.com/"
10 depends=(gtkspell3 json-glib 'libunity>=4.0.0' dbus-python gnome-keyring python-gnomekeyring python-notify python-wnck python-egenix-mx-base python2-oauth python-imaging python-pycurl python-simplejson pywebkitgtk pyxdg xdg-utils)
11 makedepends=('vala>=0.14' 'intltool>=0.35.0' 'gobject-introspection>=0.10')
12 optdepends=('libindicate: Messages Indicator support')
13 provides=("gwibber=$pkgver")
16 install=$_pkgname.install
17 source=(http://launchpad.net/$_pkgname/3.2/$pkgver/+download/$_pkgname-$pkgver.tar.gz
18 launchpad-export.tar.gz
22 gwibber-vala-0.14.patch)
23 md5sums=(8e245072f8b43852ef2b801c8b307179
24 e2461293ef2eba418ffea75af64c41c7
25 f5b71a79b7ada0465fafdbbb4d298899
26 8e0cbaff485de700e69a8a05f712600d
27 728b6c86f604cfbbfc77d999fe21868f
28 94fd3204798aad5a464ab40112f7819b)
31 cd "$srcdir/$_pkgname-$pkgver"
32 find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
35 patch -Np1 -i "$srcdir/lp_861903.patch"
36 patch -Np1 -i "$srcdir/lp_882633.patch"
37 patch -Np1 -i "$srcdir/lp_884831.patch"
40 patch -Np0 -i "$srcdir/gwibber-vala-0.14.patch"
43 sed -i 's|Icon=applications-microblogging-panel|Icon=/usr/share/gwibber/unity/applications-microblogging-panel.svg|' lens/data/gwibber.lens.in.in
45 # Install updated language files
46 echo 'af an ar ast az be bg bn br bs ca ca@valencia cy cs da de dv el en_AU en_CA en_GB eo es et eu fa fi fil fr fy ga gl gu he hi hr hu hy ia id is it ja ka kk km kn ko ku lb lo lt lv mg mk ml mn mr ms nb nl nn oc pa pl pt pt_BR ro ru si sk sl sq sr sv ta te th tr tt ug uk vi yo zh_CN zh_HK zh_TW zza' >po/LINGUAS
47 rename $_pkgname- '' ../po/$_pkgname-*.po
51 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$_pkgname \
52 --disable-static --disable-schemas-compile
57 cd "$srcdir/$_pkgname-$pkgver"
59 make DESTDIR="$pkgdir" install