mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
73 lines
2.9 KiB
Bash
73 lines
2.9 KiB
Bash
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Contributor: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Stijn Segers <francesco dot borromini at gmail dot com>
|
|
|
|
# remove when bumped upstream
|
|
|
|
_name=FreeRDP
|
|
pkgname=freerdp
|
|
pkgver=2.5.0
|
|
pkgrel=1.1
|
|
epoch=2
|
|
pkgdesc="Free implementation of the Remote Desktop Protocol (RDP)"
|
|
arch=('x86_64')
|
|
url="https://www.freerdp.com/"
|
|
license=('Apache')
|
|
depends=('dbus-glib' 'glibc' 'gstreamer' 'gst-plugins-base-libs' 'libcups'
|
|
'libgssglue' 'libx11' 'libxcursor' 'libxext' 'libxdamage' 'libxfixes'
|
|
'libxkbcommon' 'libxi' 'libxinerama' 'libxkbfile' 'libxrandr' 'libxrender'
|
|
'libxtst' 'openssl' 'pcsclite' 'wayland')
|
|
makedepends=('alsa-lib' 'cmake' 'docbook-xsl' 'ffmpeg' 'icu' 'krb5'
|
|
'libjpeg-turbo' 'libpulse' 'libusb' 'pam' 'systemd-libs' 'xmlto' 'xorgproto')
|
|
provides=('libfreerdp2.so' 'libfreerdp-client2.so' 'libfreerdp-server2'
|
|
'libfreerdp-shadow2.so' 'libfreerdp-shadow-subsystem2.so' 'libwinpr2.so'
|
|
'libwinpr-tools2.so' 'libuwac0.so')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
|
|
"$pkgname-2.0.0-manpage_formatting.patch")
|
|
sha512sums=('7720306c8d0915578f6758f46ba0e0b8a81bbdcd1c80e08711576605142467f6735f644099e79a05113959fb30cd1070ca138a523537a41a7102880daf89c04c'
|
|
'd960e042d1527b5d5721136b6b20fc36f65beafd010581ea5b908668537fe9fe622de6689a29c0274b0d6f1e513615f0d02e56c1d1d1e613d093e145d39af8d7')
|
|
b2sums=('c81262e9963525c83960f8ca95b142787787ce844633ce6aa81820be90575dd59f802dd277cb950de12c120f25caa9b189c0bf942c91af9119f3f4338b0796d1'
|
|
'8242fe56ba9cf5352d836f656645a46142c1aecea3e8200203117a0cccc226135591c16fa0a24cfa196ade7b703832ff6871a948fd3bbbcc1d9c6df9885dc360')
|
|
|
|
prepare() {
|
|
mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
|
|
cd "${pkgname}-${pkgver}"
|
|
# fix man page formatting:
|
|
# https://bugs.archlinux.org/task/64814
|
|
patch -Np1 -i "../${pkgname}-2.0.0-manpage_formatting.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}"
|
|
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_ICU=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 \
|
|
-Wno-dev \
|
|
-B build \
|
|
-S .
|
|
make VERBOSE=1 -C build
|
|
}
|
|
|
|
package() {
|
|
depends+=('libasound.so' 'libavcodec.so' 'libavutil.so' 'libicuuc.so'
|
|
'libjpeg.so' 'libpam.so' 'libpulse.so' 'libswscale.so' 'libswresample.so'
|
|
'libsystemd.so' 'libusb-1.0.so')
|
|
cd "${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install -C build
|
|
install -vDm 644 {ChangeLog,README.md} \
|
|
-t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
}
|