# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=xfce4-vala pkgver=4.10.3 pkgrel=4 pkgdesc="Vala bindings for Xfce4" url="http://wiki.xfce.org/vala-bindings" arch="all" license="LGPL" depends="exo-dev libxfce4util-dev libxfce4ui-dev garcon-dev xfce4-panel-dev xfconf-dev vala" makedepends="" install= subpackages= source="http://archive.xfce.org/src/bindings/xfce4-vala/${pkgver%.*}/xfce4-vala-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local _p cd "$_builddir" for _p in $source; do case $_p in *.patch) msg $_p; patch -p1 -i "$srcdir"/$_p || return 1;; esac done } build() { cd "$_builddir" local _apiver=$(valac --version | awk '{print $2}' \ | awk -F. '{print $1 "." $2}') ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-vala-api=$_apiver \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="0bbb1d6e473e0fe9b335b7b1b49d8a71 xfce4-vala-4.10.3.tar.bz2" sha256sums="07a8f2b7c09fcdd3d86e0c52adea3c58ca011d0142a93997a01b4af77260ae7b xfce4-vala-4.10.3.tar.bz2" sha512sums="ef5d6c67d53edc428ed10e59c21a1264a0d6d06efbea531a15f2eb1309e632e3cd275657aeb01c5723f437b9c319b922055598f97b0ee7db45853beef4f4d987 xfce4-vala-4.10.3.tar.bz2"