# Maintainer: Alexander Fehr pkgname=pino pkgver=0.2.11 pkgrel=2 pkgdesc="Fast, easy and free Twitter client" arch=('i686' 'x86_64') url="http://pino-app.appspot.com/" license=('LGPL3') depends=('libgee' 'libnotify' 'libwebkit' 'libunique' 'gtkspell' 'librsvg' 'hicolor-icon-theme') makedepends=('vala' 'python2' 'intltool') install=pino.install source=(http://pino-twitter.googlecode.com/files/pino-$pkgver.tar.bz2 'http://pino-twitter.googlecode.com/issues/attachment?aid=7997220980544714569&name=pino-construct-only-properties.patch&token=15ef6a707041182e2c83fcca4a5452f7' 'http://pino-twitter.googlecode.com/issues/attachment?aid=28526972712064395&name=pino-get_style_property-fix.patch&token=ed0c049214f0e93c862b04087b504f9e') md5sums=('301c1443e5fab366b8e43b691a2db28f' '7ad98756dba6596034f655724afa3f29' '8b327e6b21a52a62e92397dfcdd858ca') build() { cd $srcdir/pino-0.2.10 # Make it build with Vala 0.10 #sed -i 's|name = "AccountAct";|GLib.Object (name: "AccountAct");|' src/account_action.vala #sed -i 's|type = WindowType.POPUP;|GLib.Object (type: WindowType.POPUP);|' src/more_window.vala mv $srcdir/'attachment?aid=28526972712064395&name=pino-get_style_property-fix.patch&token=ed0c049214f0e93c862b04087b504f9e' $srcdir/pino-get_style_property-fix.patch mv $srcdir/'attachment?aid=7997220980544714569&name=pino-construct-only-properties.patch&token=15ef6a707041182e2c83fcca4a5452f7' $srcdir/pino-construct-only-properties.patch patch -N -l -p1 -i $srcdir/pino-construct-only-properties.patch || return 1 patch -N -l -p1 -i $srcdir/pino-get_style_property-fix.patch || return 1 python2 waf configure --prefix=/usr python2 waf build } package() { cd $srcdir/pino-0.2.10 python2 waf install --destdir=$pkgdir }