PKGBUILDs/community/freerdp/PKGBUILD

62 lines
1.8 KiB
Bash
Raw Normal View History

2014-10-17 01:35:25 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# 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
pkgname=freerdp
2015-03-03 20:30:10 +00:00
epoch=1
2018-04-16 12:37:53 +00:00
pkgver=2.0.0_rc2
2017-07-25 12:27:32 +00:00
#_commit=6001cb710dc67eb8811362b7bf383754257a902b
2014-10-17 01:35:25 +00:00
_pkgver=${pkgver/_/-}
_pkgver=${_pkgver/+/-}
2018-04-16 12:37:53 +00:00
pkgrel=1
2014-10-17 01:35:25 +00:00
pkgdesc="Free RDP client"
2017-12-07 13:59:49 +00:00
arch=('x86_64')
2014-10-17 01:35:25 +00:00
url="http://freerdp.sourceforge.net"
license=('GPL')
depends=('openssl' 'libxcursor' 'libcups' 'alsa-lib' 'libxext' 'libxdamage'
'ffmpeg' 'libxkbfile' 'libxinerama' 'libxv' 'libpulse' 'libxkbfile'
'libxrender' 'libxfixes' 'gst-plugins-base-libs')
makedepends=('krb5' 'cmake' 'damageproto' 'fixesproto' 'renderproto'
'xmlto' 'docbook-xsl' 'git')
2017-02-02 13:31:12 +00:00
provides=('libwinpr-tools2.so' 'libfreerdp-client2.so' 'libfreerdp2.so'
'libwinpr2.so')
2017-07-25 12:27:32 +00:00
#source=("FreeRDP-${_pkgver}::git://github.com/FreeRDP/FreeRDP.git#commit=${_commit}")
2018-03-16 12:16:38 +00:00
source=($pkgname-$pkgver.tar.gz::https://github.com/FreeRDP/FreeRDP/archive/${pkgver/_/-}.tar.gz
fix_nla-8cd156a-backport.patch)
2018-04-16 12:37:53 +00:00
sha256sums=('a09e338b996fada44bf1277f423240d0fa82289799e2e5dea9d9c63201554de1'
2018-03-16 12:16:38 +00:00
'2d449e0c1adee1ef131501e1613fc4c59fd122ca866d09f52eeff61236de81e4')
prepare() {
cd "$srcdir"/FreeRDP-${_pkgver}
2018-04-16 12:37:53 +00:00
# patch -Np1 -i "${srcdir}/fix_nla-8cd156a-backport.patch"
2018-03-16 12:16:38 +00:00
}
2014-10-17 01:35:25 +00:00
build() {
2017-02-01 20:38:42 +00:00
cd "$srcdir"/FreeRDP-${_pkgver}
2014-10-17 01:35:25 +00:00
[[ $CARCH == "arm" ]] && ABI="soft"
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && ABI="hard"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DWITH_PULSE=ON \
-DWITH_CUPS=ON \
-DWITH_CHANNELS=ON \
-DWITH_CLIENT_CHANNELS=ON \
-DWITH_SERVER_CHANNELS=ON \
2016-01-07 13:36:51 +00:00
-DWITH_WAYLAND=ON \
2014-10-17 01:35:25 +00:00
-DWITH_NEON=OFF \
-DARM_FP_ABI=${ABI} \
.
make
2014-10-17 01:35:25 +00:00
}
package() {
2017-02-01 20:38:42 +00:00
cd "$srcdir"/FreeRDP-${_pkgver}
2014-10-17 01:35:25 +00:00
make DESTDIR="${pkgdir}" install
}