blob: a04b1fe074d056c4905cf250316ba3bc9997fae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freerdp
pkgver=1.0.1
pkgrel=3
pkgdesc="Free RDP client"
url="http://freerdp.sourceforge.net"
arch="all"
license="GPL"
depends=""
subpackages="$pkgname-dev $pkgname-plugins $pkgname-libs"
makedepends="openssl-dev libxcursor-dev cups-dev alsa-lib-dev ffmpeg-dev
cups-dev libxkbfile-dev libxinerama-dev libxv-dev libxdamage-dev
cmake"
source="https://github.com/downloads/FreeRDP/FreeRDP/freerdp-$pkgver.tar.gz
pluginpath.patch
futimens.patch"
_builddir="$srcdir"/freerdp-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
export CFLAGS="$CFLAGS -D_BSD_SOURCE"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|| return 1
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
libs() {
pkgdesc="Free RDP client - Libraries"
replaces="libfreerdp"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/share "$pkgdir"/usr/lib "$subpkgdir"/usr/
}
plugins() {
pkgdesc="Free RDP client - plugins"
replaces="libfreerdp"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/freerdp "$subpkgdir"/usr/lib/
}
md5sums="c843185e0ff22ce8409954651718f338 freerdp-1.0.1.tar.gz
f18b6a675341d8e9755941afd4fc8d82 pluginpath.patch
b9673acd41c4205cd32e5412dcb07515 futimens.patch"
|