#vapigen --library gobject-introspection-1.0 /usr/share/gir-1.0/GIRepository-2.0.gir
-
-VALAVER=`pkg-config --list-all | grep libvala | sort -n | awk '{ print $1 }'`
+# should get the hightest?
+VALAVER=$(word 1, $(shell pkg-config --list-all | grep libvala | sort -n | head))
PKGS= --pkg gtk+-3.0 \
--pkg gtksourceview-3.0 \