pkgname=vala pkgver=0.40.9 pkgrel=1 pkgdesc="Compiler for the GObject type system." arch=('x86_64') url="https://wiki.gnome.org/Projects/Vala" license=('LGPL') depends=('glib2' 'graphviz' 'ttf-font' 'pkg-config' 'gcc') makedepends=('libxslt' 'gtk-doc' 'help2man') checkdepends=('dbus' 'libx11' 'gobject-introspection') source=(https://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz) sha256sums=('c7ff0480779b2d78d6ff78f5fd165b3ba972e4fa9e9da1b411ff4375a78c6a7b') build() { cd $pkgname-$pkgver ./configure --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { cd $pkgname-$pkgver make check } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }