File PKGBUILD of Package remmina

# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=remmina
epoch=1
pkgver=1.2.0rcgit.16
pkgrel=1
pkgdesc="remote desktop client written in GTK+"
arch=(i686 x86_64)
url="http://www.remmina.org/"
license=('GPL')
depends=('gtk3' 'zlib' 'libjpeg' 'libssh' 'avahi' 'vte3'
	 'libgcrypt' 'libxdmcp' 'libsecret' 'webkit2gtk')
makedepends=('intltool' 'pkgconfig' 'cmake' 'libgnome-keyring'
             'ffmpeg'
             'avahi' 'libxkbfile' 'freerdp' 'telepathy-glib'
             'libvncserver' 'spice-protocol' 'spice-gtk3'
             'libx264' 'hdf5' 'jack' 'libx264')
optdepends=('libxkbfile'
            'freerdp'
            'telepathy-glib'
            'gnome-keyring'
            'nxproxy'
            'spice-protocol: SPICE protocol support'
            'spice-gtk3: SPICE protocol support'
            'xorg-server-xephyr: XDMCP support'
            'libvncserver: VNC client/server support')
replaces=('remmina-plugins')
provides=('remmina-plugins')
# source=("$pkgname-$pkgver.tar.gz::https://github.com/FreeRDP/Remmina/archive/v1.2.0-rcgit.15.tar.gz")
source=("https://github.com/FreeRDP/Remmina/archive/v1.2.0-rcgit.16.tar.gz")
md5sums=('SKIP')

build() {
  cd ${srcdir}/Remmina-${pkgver/rc/-rc}/
  ls /usr/include/spice-1/
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DWITH_APPINDICATOR=OFF .
  make
}

package() {
  cd ${srcdir}/Remmina-${pkgver/rc/-rc}/
  make DESTDIR=${pkgdir} install
  rm -rf $pkgdir/build
}