PKGBUILDs/community/freerdp/PKGBUILD

75 lines
2.6 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
2015-03-03 20:30:10 +00:00
epoch=1
2018-11-20 20:15:40 +00:00
pkgver=2.0.0_rc4
2020-01-30 13:32:23 +00:00
pkgrel=8
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')
2019-06-11 23:21:50 +00:00
url="http://www.freerdp.com/"
license=('Apache')
2020-01-30 13:32:23 +00:00
depends=('dbus-glib' 'glib2' 'glibc' 'gsm' 'gstreamer' 'gst-plugins-base-libs'
'lame' 'libcups' 'libjpeg-turbo' 'libgssglue' 'libsoxr' 'libusb' 'libxkbcommon'
'libxinerama' 'libxkbfile' 'libxrandr' 'mbedtls' 'openssl' 'pam' 'pcsclite'
'wayland')
makedepends=('alsa-lib' 'cmake' 'docbook-xsl' 'faac' 'faad2' 'ffmpeg' 'krb5'
'libpulse' 'systemd-libs' 'xmlto' 'xorgproto')
2017-02-02 13:31:12 +00:00
provides=('libwinpr-tools2.so' 'libfreerdp-client2.so' 'libfreerdp2.so'
2019-06-11 23:21:50 +00:00
'libwinpr2.so')
2020-01-30 13:32:23 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver/_/-}.tar.gz"
"$pkgname-2.0.0-manpage_formatting.patch")
sha512sums=('b4a4d4a58d09010bc45fb90cca148dc4421a4cf0cd5caf288aa702212ef081f14fc418b91f1b79ec8631f582c9ebcdd3031d3333b6a892adb29c402492abb649'
'd960e042d1527b5d5721136b6b20fc36f65beafd010581ea5b908668537fe9fe622de6689a29c0274b0d6f1e513615f0d02e56c1d1d1e613d093e145d39af8d7')
2018-03-16 12:16:38 +00:00
prepare() {
2019-06-11 23:21:50 +00:00
mv -v "${_name}-${pkgver/_/-}" "${pkgname}-${pkgver}"
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}"
2014-10-17 01:35:25 +00:00
[[ $CARCH == "arm" ]] && ABI="soft"
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && ABI="hard"
2019-06-11 23:21:50 +00:00
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
2014-10-17 01:35:25 +00:00
-DWITH_NEON=OFF \
-DARM_FP_ABI=${ABI} \
2019-06-11 23:21:50 +00:00
-DWITH_MBEDTLS=ON \
-DWITH_PULSE=ON \
-DWITH_CUPS=ON \
-DWITH_PCSC=ON \
-DWITH_JPEG=ON \
-DWITH_GSM=ON \
-DWITH_LAME=ON \
-DWITH_FAAD2=ON \
-DWITH_FAAC=ON \
-DWITH_SOXR=ON \
-DWITH_SERVER=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-01-30 13:32:23 +00:00
-B build \
-S .
make VERBOSE=1 -C build
2014-10-17 01:35:25 +00:00
}
package() {
2020-01-30 13:32:23 +00:00
depends+=('libasound.so' 'libavcodec.so' 'libavutil.so' 'libfaac.so'
'libfaad.so' 'libpulse.so' 'libsystemd.so' 'libudev.so')
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install -C build
install -vDm 644 {ChangeLog,README} -t "${pkgdir}/usr/share/doc/${pkgname}"
2014-10-17 01:35:25 +00:00
}