aboutsummaryrefslogtreecommitdiffstats
path: root/community/remmina/APKBUILD
blob: de7914a3d87ac7500194687ab78f9cf60f069ff1 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=remmina
pkgver=1.2.0
_hash=b3e339ea5478c0941a6dfa0bf8fed9e7a1c70e0b
pkgrel=0
pkgdesc="Remmina is a remote desktop client written in GTK+"
url="http://remmina.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="gtk+3.0-dev intltool zlib-dev libjpeg-turbo-dev gnutls-dev
	vte3-dev libgcrypt-dev libssh-dev libxkbfile-dev freerdp-dev
	avahi-ui-dev libvncserver-dev cmake"
install=
replaces="remmina-plugins"
subpackages="$pkgname-dev $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/FreeRDP/Remmina/archive/$_hash.tar.gz
	no-gnome-keyring.patch
	remmina-1.0.0-dsofix.patch
	libintl-underlink.patch
	"

_builddir="$srcdir"/Remmina-$_hash

prepare() {
	cd "$_builddir"
        for patch in $source; do
                case $patch in
                *.patch)
                        msg "Applying patch $patch"
                        patch -p1 -i "$srcdir"/$patch || return 1
                        ;;
                esac
        done
}

build() {
	cd "$_builddir"
	cmake -DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DWITH_APPINDICATOR=OFF \
		-DWITH_AVAHI=ON \
		-DWITH_FREERDP=ON \
		-DWITH_GCRYPT=ON \
		-DWITH_LIBSSH=ON \
		-DWITH_PTHREAD=ON \
		-DWITH_TELEPATHY=OFF \
		-DWITH_VTE=ON \
		-DWITH_ZLIB=ON \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="5416021bacea67866835a14dd2f22af5  remmina-1.2.0.tar.gz
178d55f7aa59d6dc73b19e03201ad1e4  no-gnome-keyring.patch
144e8f4127ccec7282060800147a48ea  remmina-1.0.0-dsofix.patch
e5af6b49e42462550f51843ef8326076  libintl-underlink.patch"
sha256sums="baa05c547e51ce353f51ff5cd058f863af72d8fbd310cef8073e48ffe472cf03  remmina-1.2.0.tar.gz
fb6094af599b64a1944f9a13a767e846d8bf772470690073da76cfd5eed799c2  no-gnome-keyring.patch
701cf9b0d6560ae9eee375f3c2828e449666190664fb28c9ccd95627db5d92e4  remmina-1.0.0-dsofix.patch
a8065f8bef88417bdfd8631441da19c9f945e0cc7131382e33a9f2c26f4e6017  libintl-underlink.patch"
sha512sums="a323ed705a6f7e84488971eff00612807ae7c49fd547a7058ed4ac463d8ffecdb974e12e438c02fd45f25740431f32ba4733483ba9afac90f3fcab07834f2060  remmina-1.2.0.tar.gz
5e0d26e799c9b85ae0c5bd7b9e6f07fd4a2da15c12b2a649098603c84d7dda6bfa518b0295edecc7522ab06c1a84d444083634d9fedb7d44b65b86dfc2eef65b  no-gnome-keyring.patch
4b8299c65b9a1bc529fd44fdb05033d5dfd7e5589daea7056d275011a6f01f4154141ae9b787581de646019c9f15b0493da39484850b2df052df33824c67dd91  remmina-1.0.0-dsofix.patch
43fa8caf186bac447921aa13c89ebf378f72d00a2d9c6bc76b4408c70fea3205e450e8cc7b145f4d5b3c6719e667be983d6e9f5b52fda00e10ecf7a48696c88b  libintl-underlink.patch"