updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / remmina-plugins-git / PKGBUILD
blobe8f9abb4794ac63a4fd2906a53fc2263dbac63e4
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=remmina-plugins-git
4 pkgver=20120104
5 pkgrel=1
6 pkgdesc="Remmina remote desktop client plugins - git checkout "
7 arch=(i686 x86_64)
8 url="http://remmina.sourceforge.net/"
9 license=('GPL')
10 provides=(remmina-plugins)
11 conflicts=(remmina-plugins)
12 depends=(remmina-git freerdp-git zlib libjpeg avahi vte libssh libgcrypt libunique)
13 makedepends=(git cmake intltool pkgconfig gettext libxdmcp)
14 install=remmina-plugins.install
16 _gitroot="https://github.com/FreeRDP/Remmina"
17 _gitname="remmina"
19 build() {
20         cd "${srcdir}"
21         msg "Connecting to GIT server...."
23         if [ -d ${_gitname} ]; then
24                 cd ${_gitname} && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone ${_gitroot} ${_gitname}
28         fi
29         msg "GIT checkout done or server timeout"
31         msg "Cloning to build directory"
32         rm -rf "${srcdir}/${_gitname}-build"
33         git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
35         msg "Starting make..."
37         cd "${srcdir}/${_gitname}-build/"
39         cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
41         cd "remmina-plugins/"
42         make
43         make DESTDIR=${pkgdir} install