1 # Maintainer Renzo Carbonara <gnuk0001@gmail.com>
2 # Old Maintainer Emanuele Rossi <newdna1510 at yahoo dot it>
4 pkgname=pino-twitter-hg
7 pkgdesc="Mercurial build of Pino Twitter Client GTK2/Vala "
9 url="http://code.google.com/p/pino-twitter/"
11 depends=('vala' 'gtk2' 'libgee' 'libsoup' 'libwebkit' 'libxml2' 'intltool' 'gtkspell' 'libunique')
12 makedepends=('pkgconfig' 'mercurial' 'cmake')
13 provides=('pino-twitter-hg' 'pino-hg')
17 source=('pino-construct-only-properties.patch'
18 'pino-get_style_property-fix.patch')
19 md5sums=('7ad98756dba6596034f655724afa3f29'
20 '8b327e6b21a52a62e92397dfcdd858ca')
22 _hgroot=https://pino-twitter.googlecode.com/hg/
27 msg "Connecting to Mercurial server...."
29 if [[ -d "$_hgrepo" ]]; then
32 msg "The local files are updated."
34 hg clone "$_hgroot" "$_hgrepo"
37 msg "Mercurial checkout done or server timeout"
38 msg "Starting build..."
40 rm -rf "$srcdir/$_hgrepo-build"
41 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
42 cd "$srcdir/$_hgrepo-build"
48 patch -N -l -p1 -i $srcdir/pino-construct-only-properties.patch
49 patch -N -l -p1 -i $srcdir/pino-get_style_property-fix.patch
51 for i in $(find . | grep "\.py"); do
52 sed "s/\#\! \/usr\/bin\/env python/\#\! \/usr\/bin\/env python2/g" -i $i
56 for i in $(find src | grep "\.vala"); do
57 sed "s/ Action/ Gtk.Action/g" -i $i
60 cmake -DCMAKE_INSTALL_PREFIX=/usr -DUBUNTU_ICONS=OFF -DENABLE_DEBUG=OFF
62 make DESTDIR=$pkgdir install
64 sed "s/\#\! \/usr\/bin\/env python/\#\! \/usr\/bin\/env python2/g" -i {waf,wscript}
66 # ./waf configure --prefix=/usr || return 1
67 # ./waf build || return 1
68 # ./waf --destdir=$startdir/pkg install || return 1