summaryrefslogtreecommitdiffstats
path: root/main/freerdp/APKBUILD
blob: c6767b38b72c977b0e369fd17416572c8a8c97f4 (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
60
61
62
63
64
65
66
67
68
69
70
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freerdp
pkgver=1.0.2
pkgrel=2
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/FreeRDP/FreeRDP/archive/$pkgver.tar.gz
	pluginpath.patch
	futimens.patch
	ffmpeg2.0.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="c260051a94caff590def5caa4fcf59d6  1.0.2.tar.gz
f18b6a675341d8e9755941afd4fc8d82  pluginpath.patch
b9673acd41c4205cd32e5412dcb07515  futimens.patch
1260eecf01ea5212e2db8ac9c5e7fa6d  ffmpeg2.0.patch"
sha256sums="c0f137df7ab6fb76d7e7d316ae4e0ca6caf356e5bc0b5dadbdfadea5db992df1  1.0.2.tar.gz
765fc48fc6a044277a2091ec02b7051721374090e9c7c3da4b9b8b7db0f10349  pluginpath.patch
4035df44a9883197c832b6141e9e372db371a8148e5ba3a8c011e543e8d10d3f  futimens.patch
d7dbe684404713fc3ec6479a91aa8215e6d28ebb18ea66456134edfa134e3750  ffmpeg2.0.patch"
sha512sums="370b30e05bc125c69fd06583ab747f885e1bf41b47a68c0e326208f22be06e48a4163f4632085767c76aaeabda95b6ab9d285784fd33a73f7d404c9517d54f3c  1.0.2.tar.gz
714d111a6407b0408e8b9cd6acf8df381fe1d2347339d16833980aff61fe0f273f4d506c15bd415174aabe644f56311c990d7d5dfb98f61d6f64e6925e37a11a  pluginpath.patch
455e41b8237c01935f6c845f16065bd8667c5b6feba6c9c9ce63544203405686d5da8845fe35eb10a3f725d8f540e5fbafccb9d207f7deea2c17eb447daaaaff  futimens.patch
fa67829b6be3703fb2ce38f814265b32331375c46c194fd0677165055ebb4bc53ccbe2011d9ab67be1ed31b29543e6f14f1b11e99268de557664864717d1378e  ffmpeg2.0.patch"