# Contributor: Alan Lacerda # Maintainer: Alan Lacerda pkgname=vino pkgver=3.18.1 pkgrel=0 pkgdesc="The GNOME desktop sharing server" url="https://wiki.gnome.org/Projects/Vino" arch="all" license="GPLv2" depends="" depends_dev="" makedepends="$depends_dev libsoup-dev glib-dev gtk+3.0-dev libnotify-dev libsm-dev bsd-compat-headers" install="" subpackages="$pkgname-lang" source="http://ftp.gnome.org/pub/GNOME/sources/vino/${pkgver%.*}/$pkgname-$pkgver.tar.xz $pkgname.initd" _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 \ --build=$CBUILD \ --host=$CHOST \ --localstatedir=/var \ --without-gnutls \ --without-gcrypt \ --prefix=/usr \ || return 1 make \ || return 1 } package() { cd "$_builddir" make DESTDIR="${pkgdir}" DATADIRNAME=share install \ || return 1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname \ || return 1 } md5sums="f9f4a343a3dca9457213fe6da83ceb2b vino-3.18.1.tar.xz 23f6f0ddfae3d45072d160d137f3f00d vino.initd" sha256sums="07ec6e78bbecd4ee3fce873eb26932fdda9c7642bb09d17ac36483b996fafe5a vino-3.18.1.tar.xz b0921a648f0d6a67034d67ed18f1fccbdec40a757441fbe2d53cf9b67d3181c1 vino.initd" sha512sums="6c98b86a1ae324547b63a2071208f5c2213765ad554f10f3e504bc6ab5817682e5a03df5c23ddbb814d918f263027579c3344dab944eeb4329b0a84f9a3bd182 vino-3.18.1.tar.xz ae311ed85e5edc04f9e6f6797dd36434f31ecd75c4d6e589043936ca39f462ebfebc73a76cf5c2f1cf9dd6fb331912315fdc28b516b8d30efda9c9def5527abc vino.initd"