PKGBUILDs/community/freerdp/PKGBUILD
2020-06-22 12:17:07 +00:00

78 lines
2.8 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>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - define WITH_NEON and ARM_FP_ABI
_name=FreeRDP
pkgname=freerdp
pkgver=2.1.2
pkgrel=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'
'libjpeg-turbo' 'libgssglue' 'libx11' 'libxcursor' 'libxext' 'libxdamage'
'libxfixes' 'libxkbcommon' 'libxi' 'libxinerama' 'libxkbfile' 'libxrandr'
'libxrender' 'libxtst' 'openssl' 'pam' 'pcsclite' 'wayland')
makedepends=('alsa-lib' 'cmake' 'docbook-xsl' 'ffmpeg' 'krb5' 'libpulse'
'libusb' '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=('11589f75bbdc270cbb0c79de9e3ba54950801ac8f281c9a35133165a25313b4cc8c0a7710275b9131f0e2bc2d7f8425b4c01b5b93010f75e827447b44a0eb6b9'
'd960e042d1527b5d5721136b6b20fc36f65beafd010581ea5b908668537fe9fe622de6689a29c0274b0d6f1e513615f0d02e56c1d1d1e613d093e145d39af8d7')
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}"
export CFLAGS+=" ${CPPFLAGS}"
export CXXFLAGS+=" ${CPPFLAGS}"
[[ $CARCH == "arm" ]] && ABI="soft"
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && ABI="hard"
cmake -DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR='lib' \
-DCMAKE_BUILD_TYPE='None' \
-DPROXY_PLUGINDIR='/usr/lib/freerdp2/server/proxy/plugins' \
-DWITH_NEON=OFF \
-DARM_FP_ABI=${ABI} \
-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 \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
package() {
depends+=('libasound.so' 'libavcodec.so' 'libavutil.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}"
}