Newer
Older
jean-michel
committed
# Obarun : 66 init/supervisor
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
# Obarun PkgSrc : https://git.obarun.org/pkg/obcommunity/freerdp
#----------------
#--------------------------------------------------------------
# DESCRIPTION ]
jean-michel
committed
jean-michel
committed
pkgname=freerdp
jean-michel
committed
pkgdesc="Free implementation of the Remote Desktop Protocol (RDP)"
url='https://github.com/freerdp/freerdp'
track=$pkgname/$pkgname/archive
target=${pkgver/_/-}
source=(
$pkgname-$pkgver.tar.gz::https://github.com/$track/$target.tar.gz
$pkgname-2.0.0-manpage_formatting.patch
)
#----------------------
# BUILD CONFIGURATION ]
makedepends=(
'alsa-lib'
'cmake'
'docbook-xsl'
'ffmpeg'
'xmlto'
'xorgproto'
)
#------------------------
# INSTALL CONFIGURATION ]
jean-michel
committed
depends=(
'dbus-glib'
'glibc'
'gstreamer'
'gst-plugins-base-libs'
'libcups'
'libgssglue'
'libx11'
'libxcursor'
'libxext'
'libxdamage'
'libxfixes'
jean-michel
committed
'libxkbcommon'
jean-michel
committed
'libxinerama'
'libxkbfile'
'libxrandr'
jean-michel
committed
'openssl'
'pcsclite'
jean-michel
committed
provides=(
'libfreerdp2.so'
'libfreerdp-client2.so'
'libfreerdp-server2'
'libfreerdp-shadow2.so'
'libfreerdp-shadow-subsystem2.so'
jean-michel
committed
#----------------
# BUILD PREPARE ]
prepare() {
## fix man page formatting:
## https://bugs.archlinux.org/task/64814
patch -d $_name-$pkgver -p1 -i ../$pkgname-2.0.0-manpage_formatting.patch
}
jean-michel
committed
jean-michel
committed
-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
jean-michel
committed
-DWITH_PULSE=ON
-DWITH_CUPS=ON
-DWITH_PCSC=ON
jean-michel
committed
-DWITH_JPEG=ON
-DWITH_SERVER=ON
jean-michel
committed
-DWITH_CHANNELS=ON
-DWITH_CLIENT_CHANNELS=ON
-DWITH_SERVER_CHANNELS=ON
-DCHANNEL_URBDRC_CLIENT=ON
jean-michel
committed
-DWITH_LIBSYSTEMD=OFF
)
jean-michel
committed
build() {
cmake "${_path[@]}" "${_flags[@]}" -B build -S $_name-$pkgver
jean-michel
committed
make VERBOSE=1 -C build
}
jean-michel
committed
package() {
depends+=(
'libasound.so'
'libavcodec.so'
'libavutil.so'
'libswscale.so'
'libswresample.so'
'libusb-1.0.so'
jean-michel
committed
install -vDm 644 $_name-$pkgver/{ChangeLog,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
jean-michel
committed
}
#-------------------------
# LICENCE AND VALIDATION ]
arch=(x86_64)
license=(Apache)
sha512sums=(' ')