1 # Maintainer: Christian Hesse <mail@eworm.de>
6 pkgdesc="Remmina remote desktop client written in GTK+ - git checkout "
8 url="http://remmina.sourceforge.net/"
12 depends=(gtk3 zlib libjpeg avahi vte libssh libgcrypt libunique libappindicator3)
13 makedepends=(git cmake intltool pkgconfig gettext libxdmcp)
14 optdepends=('remmina-plugins-git: Plugins for remmina, including xdmcp vnc telepathy rdp and nx')
15 install=remmina.install
17 _gitroot="https://github.com/FreeRDP/Remmina"
22 msg "Connecting to GIT server...."
24 if [ -d ${_gitname} ]; then
25 cd ${_gitname} && git pull origin
26 msg "The local files are updated."
28 git clone ${_gitroot} ${_gitname}
30 msg "GIT checkout done or server timeout"
32 msg "Cloning to build directory"
33 rm -rf "${srcdir}/${_gitname}-build"
34 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
36 msg "Starting make..."
37 cd "${srcdir}/${_gitname}-build/"
39 cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
43 # This is needed since binutils use the gold linker... Is there a proper fix?
44 sed -i '/^\/usr\/bin\/gcc/s/$/ -lX11 -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lavahi-client -lavahi-common -lgthread-2.0/' CMakeFiles/remmina.dir/link.txt
47 make DESTDIR=${pkgdir} install