# Maintainer: Natanael Copa pkgname=freerdp pkgver=1.0.1 pkgrel=0 pkgdesc="Free RDP client" url="http://freerdp.sourceforge.net" arch="all" license="GPL" depends="" subpackages="$pkgname-dev $pkgname-plugins $pkgname-libs" makedepends="openssl-dev libxcursor-dev cups-dev alsa-lib-dev ffmpeg-dev cups-dev libxkbfile-dev libxinerama-dev libxv-dev libxdamage-dev wget cmake" source="https://github.com/downloads/FreeRDP/FreeRDP/FreeRDP-$pkgver.tar.gz pluginpath.patch" prepare() { cd "$srcdir"/FreeRDP-FreeRDP-* for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$srcdir"/FreeRDP-FreeRDP-* cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ || return 1 make } package() { cd "$srcdir"/FreeRDP-FreeRDP-* make DESTDIR="$pkgdir" install || return 1 } libs() { pkgdesc="Free RDP client - Libraries" replaces="libfreerdp" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/share "$pkgdir"/usr/lib "$subpkgdir"/usr/ } plugins() { pkgdesc="Free RDP client - plugins" replaces="libfreerdp" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/freerdp "$subpkgdir"/usr/lib/ } md5sums="1282189a87893bf196da20382e45f6c1 FreeRDP-1.0.1.tar.gz f18b6a675341d8e9755941afd4fc8d82 pluginpath.patch"