PKGBUILDs/community/freerdp/PKGBUILD

83 lines
3.2 KiB
Bash
Raw Normal View History

2014-10-17 01:35:25 +00:00
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2020-01-30 13:32:23 +00:00
# Contributor: David Runge <dvzrv@archlinux.org>
2014-10-17 01:35:25 +00:00
# Contributor: Stijn Segers <francesco dot borromini at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2016-01-07 13:36:51 +00:00
# - define WITH_NEON and ARM_FP_ABI
2014-10-17 01:35:25 +00:00
2019-06-11 23:21:50 +00:00
_name=FreeRDP
2014-10-17 01:35:25 +00:00
pkgname=freerdp
2021-07-29 13:01:21 +00:00
pkgver=2.4.0
2021-10-17 14:39:16 +00:00
pkgrel=2
2020-06-22 12:17:07 +00:00
epoch=2
2019-06-11 23:21:50 +00:00
pkgdesc="Free implementation of the Remote Desktop Protocol (RDP)"
2017-12-07 13:59:49 +00:00
arch=('x86_64')
2020-04-10 00:38:00 +00:00
url="https://www.freerdp.com/"
2019-06-11 23:21:50 +00:00
license=('Apache')
2020-04-10 00:38:00 +00:00
depends=('dbus-glib' 'glibc' 'gstreamer' 'gst-plugins-base-libs' 'libcups'
2021-02-25 18:22:42 +00:00
'libgssglue' 'libx11' 'libxcursor' 'libxext' 'libxdamage' 'libxfixes'
'libxkbcommon' 'libxi' 'libxinerama' 'libxkbfile' 'libxrandr' 'libxrender'
'libxtst' 'openssl' 'pcsclite' 'wayland')
2021-10-17 14:39:16 +00:00
makedepends=('alsa-lib' 'cmake' 'docbook-xsl' 'ffmpeg' 'icu' 'krb5'
'libjpeg-turbo' 'libpulse' 'libusb' 'pam' 'systemd-libs' 'xmlto' 'xorgproto')
2020-04-10 00:38:00 +00:00
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"
2020-05-08 12:47:06 +00:00
"$pkgname-2.0.0-manpage_formatting.patch")
2021-07-29 13:01:21 +00:00
sha512sums=('fb63c40dcdbbc16bf1d591227ec04537f96f0d5098be28a7b8b0158c83803941f1737604473e6fec45e85ec951bf4309c7b119a282ed2a7902f095757da67b20'
2020-05-08 12:47:06 +00:00
'd960e042d1527b5d5721136b6b20fc36f65beafd010581ea5b908668537fe9fe622de6689a29c0274b0d6f1e513615f0d02e56c1d1d1e613d093e145d39af8d7')
2021-07-29 13:01:21 +00:00
b2sums=('841218376f4a3b017f3499122062742faef6e8251ca3bd1439210943983bf2b6ce843eed57ec7357e9067fddc17a99177bf970b328e60a771e6eac60ba1c0da9'
2020-07-20 15:48:12 +00:00
'8242fe56ba9cf5352d836f656645a46142c1aecea3e8200203117a0cccc226135591c16fa0a24cfa196ade7b703832ff6871a948fd3bbbcc1d9c6df9885dc360')
2018-03-16 12:16:38 +00:00
prepare() {
2020-04-10 00:38:00 +00:00
mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
2019-06-11 23:21:50 +00:00
cd "${pkgname}-${pkgver}"
2020-01-30 13:32:23 +00:00
# fix man page formatting:
# https://bugs.archlinux.org/task/64814
patch -Np1 -i "../${pkgname}-2.0.0-manpage_formatting.patch"
2018-03-16 12:16:38 +00:00
}
2014-10-17 01:35:25 +00:00
build() {
2020-01-30 13:32:23 +00:00
cd "${pkgname}-${pkgver}"
2020-05-20 21:50:02 +00:00
export CFLAGS+=" ${CPPFLAGS}"
export CXXFLAGS+=" ${CPPFLAGS}"
2014-10-17 01:35:25 +00:00
[[ $CARCH == "arm" ]] && ABI="soft"
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && ABI="hard"
2020-06-22 12:17:07 +00:00
cmake -DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR='lib' \
-DCMAKE_BUILD_TYPE='None' \
-DPROXY_PLUGINDIR='/usr/lib/freerdp2/server/proxy/plugins' \
2020-04-10 00:38:00 +00:00
-DWITH_NEON=OFF \
-DARM_FP_ABI=${ABI} \
-DWITH_DSP_FFMPEG=ON \
-DWITH_FFMPEG=ON \
2019-06-11 23:21:50 +00:00
-DWITH_PULSE=ON \
-DWITH_CUPS=ON \
-DWITH_PCSC=ON \
2021-10-17 14:39:16 +00:00
-DWITH_ICU=ON \
2019-06-11 23:21:50 +00:00
-DWITH_JPEG=ON \
-DWITH_SERVER=ON \
2020-04-10 00:38:00 +00:00
-DWITH_SWSCALE=ON \
2019-06-17 12:37:32 +00:00
-DWITH_CHANNELS=ON \
-DWITH_CLIENT_CHANNELS=ON \
-DWITH_SERVER_CHANNELS=ON \
-DCHANNEL_URBDRC_CLIENT=ON \
2020-05-20 21:50:02 +00:00
-Wno-dev \
2020-01-30 13:32:23 +00:00
-B build \
-S .
make VERBOSE=1 -C build
2014-10-17 01:35:25 +00:00
}
package() {
2021-10-17 14:39:16 +00:00
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')
2020-01-30 13:32:23 +00:00
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install -C build
2020-04-10 00:38:00 +00:00
install -vDm 644 {ChangeLog,README.md} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
2014-10-17 01:35:25 +00:00
}