# Maintainer: Nathan Loewen # Contributor: Christian Hesse # Contributor: Alexey Vasiliev # community/freerdp maintainer: Sergej Pupykin # community/freerdp contributor: David Runge # community/freerdp contributor: Stijn Segers pkgname=freerdp-git pkgver=2.0.0.r1099.g03a9ca80c pkgrel=1 pkgdesc="Free implementation of the Remote Desktop Protocol (RDP) - git checkout" arch=('i686' 'x86_64') url="https://www.freerdp.com/" license=('Apache') depends=('dbus-glib' 'fuse' 'glibc' 'gstreamer' 'gst-plugins-base-libs' 'libcups' 'libgssglue' 'libx11' 'libxcursor' 'libxext' 'libxdamage' 'libxfixes' 'libxkbcommon' 'libxi' 'libxinerama' 'libxkbfile' 'libxrandr' 'libxrender' 'libxtst' 'openssl' 'pcsclite' 'wayland') optdepends=('libva') makedepends=('alsa-lib' 'cmake' 'docbook-xsl' 'ffmpeg' 'krb5' 'libjpeg-turbo' 'libpulse' 'libusb' 'pam' 'systemd-libs' 'xmlto' 'xorgproto') provides=('freerdp' 'libfreerdp3.so' 'libfreerdp-client3.so' 'libfreerdp-server3.so' 'libfreerdp-shadow3.so' 'libfreerdp-shadow-subsystem3.so' 'libwinpr3.so' 'libwinpr-tools3.so' 'libuwac0.so') conflicts=('freerdp') source=('freerdp::git+https://github.com/FreeRDP/FreeRDP.git') sha256sums=('SKIP') pkgver() { cd freerdp/ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd freerdp/ cmake -DCMAKE_INSTALL_PREFIX='/usr' \ -DCMAKE_INSTALL_LIBDIR='lib' \ -DCMAKE_BUILD_TYPE='None' \ -DPROXY_PLUGINDIR='/usr/lib/freerdp2/server/proxy/plugins' \ -DWITH_DSP_FFMPEG=ON \ -DWITH_FFMPEG=ON \ -DWITH_PULSE=ON \ -DWITH_CUPS=ON \ -DWITH_PCSC=ON \ -DWITH_JPEG=ON \ -DWITH_SERVER=ON \ -DWITH_SWSCALE=ON \ -DWITH_CHANNELS=ON \ -DWITH_CLIENT_CHANNELS=ON \ -DWITH_SERVER_CHANNELS=ON \ -DCHANNEL_URBDRC_CLIENT=ON \ -DWITH_VAAPI=ON \ -DWITH_FUSE=ON \ -Wno-dev \ -B build \ -S . make -C build } package() { depends+=('libasound.so' 'libavcodec.so' 'libavutil.so' 'libjpeg.so' 'libpam.so' 'libpulse.so' 'libswscale.so' 'libswresample.so' 'libsystemd.so' 'libusb-1.0.so') cd freerdp/ make DESTDIR="${pkgdir}" install -C build install -vDm 644 {ChangeLog,README.md} \ -t "${pkgdir}/usr/share/doc/${pkgname}" }