#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=pino
pkgver=0.2.11
pkgrel=2gv
source=("http://pino-twitter.googlecode.com/files/pino-$pkgver.tar.bz2" "pino-48.png" "pino-construct-only-properties.patch"  "pino-get_style_property-fix.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://code.google.com/p/pino-twitter/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pino (twitter and identi.ca client)"
"Pino is Twitter and Identi.ca client for Linux desktop. It's simple"
"and fast. It written on Vala language and compiles to the native"
"binary code."
)


build() {
	# The developer fell asleep while creating the source tarball
	#cd $startdir/src/$pkgname-$pkgver
	cd $startdir/src/$pkgname-0.2.10

	patch -p1 < $startdir/src/pino-construct-only-properties.patch || exit 1
	patch -p1 < $startdir/src/pino-get_style_property-fix.patch || exit 1

	./waf configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
	./waf build || return 1
	./waf install --destdir=$startdir/pkg

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/src/pino-48.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/pino.png
}