# Maintainer: Natanael Copa pkgname=vala pkgver=0.14.0 pkgrel=0 pkgdesc="Compiler for the GObject type system" url="http://live.gnome.org/Vala" arch="all" license="LGPL" subpackages="$pkgname-doc" depends="glib-dev" makedepends="libxslt-dev bash glib-dev flex bison" source="http://download.gnome.org/sources/vala/${pkgver%.*}/vala-$pkgver.tar.bz2 version.patch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --enable-vapigen || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la } md5sums="266f1e51a30c3237eb17da7fccfa96f8 vala-0.14.0.tar.bz2 99524c2de7df37c95f314709a041ac65 version.patch"