updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / x2goclient / PKGBUILD
blob798eb84bfb72dd7e3c349300e98eb1af623c5273
1 # Contributor: Gerhard Brauer <gerbra@archlinux.de>
2 # Contributor: Richard Murri <admin@richardmurri.com>
3 pkgname=x2goclient
4 pkgver=3.99.0.2
5 pkgrel=1
6 pkgdesc="x2go qt4 client"
7 arch=(i686 x86_64)
8 license=('GPL')
9 url="http://www.x2go.org"
10 depends=(qt libldap libcups nxproxy libssh)
11 source=(http://code.x2go.org/releases/source/${pkgname}/${pkgname}_${pkgver}.tar.gz
12         gcc4.3.patch)
13 groups=('x2go' 'alts')
14 md5sums=('1a8346a5520cf95c6044ec7522fff176'
15          'c4080efb09d4d6bf29aac2621cda04d5')
17 build() {
18   cd "${srcdir}/${pkgname}_${pkgver}"
20   # build package
21   patch -Np1 < ../gcc4.3.patch
23   sed -i 's/linux-g++/unix/g' x2goclient.pro
24   qmake x2goclient.pro
25   make clean
26   make
28   # install client binary
29   install -D -m755 x2goclient $pkgdir/usr/bin/x2goclient
31   # install icons
32   install -D -m644 icons/128x128/x2goclient.png $pkgdir/usr/share/x2goclient/icons/x2goclient.png
33   install -D -m644 icons/128x128/x2goclient.png $pkgdir/usr/share/pixmaps/x2goclient.png
34   install -D -m644 icons/16x16/x2goclient.png $pkgdir/usr/share/icons/hicolor/16x16/apps/x2goclient.png
35   install -D -m644 icons/32x32/x2goclient.png $pkgdir/usr/share/icons/hicolor/32x32/apps/x2goclient.png
36   install -D -m644 icons/64x64/x2goclient.png $pkgdir/usr/share/icons/hicolor/64x64/apps/x2goclient.png
37   install -D -m644 icons/128x128/x2goclient.png $pkgdir/usr/share/icons/hicolor/128x128/apps/x2goclient.png
39   # install desktop entry
40   install -D -m644 desktop/x2goclient.desktop $pkgdir/usr/share/applications/x2goclient.desktop