aboutsummaryrefslogtreecommitdiffstats
path: root/main/remmina/APKBUILD
blob: d73e7432974659f6542bba871960ea44fa595534 (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
71
72
73
74
75
76
77
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=remmina
pkgver=1.0.0
pkgrel=7
pkgdesc="Remmina is a remote desktop client written in GTK+"
url="http://remmina.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="gtk+-dev intltool zlib-dev libjpeg-turbo-dev gnutls-dev vte-dev
	libgcrypt-dev libssh-dev libxkbfile-dev freerdp-dev avahi-dev
	cmake"
install=
replaces="remmina-plugins"
subpackages="$pkgname-dev $pkgname-lang"
source="https://github.com/downloads/FreeRDP/Remmina/Remmina-$pkgver.tar.gz
	no-gnome-keyring.patch
	uclibc-underlinking.patch

	remmina-1.0.0-add-clipboard-support.patch
	remmina-1.0.0-clipboard-bugfix.patch
	remmina-1.0.0-some-more-clipboard-fixes.patch
	remmina-1.0.0-disconnect-signal-handler-after-disconnect.patch
	
	remmina-1.0.0-fix-memory-leak.patch
	"

prepare() {
	cd "$srcdir"/FreeRDP-Remmina-*
        for patch in $source; do
                case $patch in
                # we concider patches with uclibc in its name
                # only usefull on uclibc install
                *uclibc*.patch)
                        if [ "$ALPINE_LIBC" != "eglibc" ]; then
                                msg "Applying patch $patch"
                                patch -p1 -i "$srcdir"/$patch || return 1
                        fi
                        ;;
                *.patch)
                        msg "Applying patch $patch"
                        patch -p1 -i "$srcdir"/$patch || return 1
                        ;;
                esac
        done
}

build() {
	cd "$srcdir"/FreeRDP-Remmina-*
	cmake -DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DWITH_PTHREAD=ON \
		-DWITH_TELEPATHY=OFF \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/FreeRDP-Remmina-*
	make DESTDIR="$pkgdir" install
	# dirty hack
	mkdir -p "$pkgdir"/usr/share/applications
	sed 's,^_,,g' remmina/desktop/remmina.desktop.in \
		> "$pkgdir"/usr/share/applications/remmina.desktop \
		|| return 1
	mv "$pkgdir"/usr/share/remmina/icons "$pkgdir"/usr/share/icons \
		|| return 1
}

md5sums="701c540acaab961bc3adf130a2ddb8b1  Remmina-1.0.0.tar.gz
178d55f7aa59d6dc73b19e03201ad1e4  no-gnome-keyring.patch
594668bf54d4068cc57f8cfdae482adb  uclibc-underlinking.patch
9312b5bf953a63e6203f0d0be6cb8134  remmina-1.0.0-add-clipboard-support.patch
65bfcc39ae51343b90928ea329cc4900  remmina-1.0.0-clipboard-bugfix.patch
42b971116f887657fc210da70c3afba5  remmina-1.0.0-some-more-clipboard-fixes.patch
04b5bc1190b53211747e097897d1d19c  remmina-1.0.0-disconnect-signal-handler-after-disconnect.patch
3bc1a4e50cdd864c0e2d7c91a1e02e32  remmina-1.0.0-fix-memory-leak.patch"