updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / retroshare / PKGBUILD
blobd91b588136e4a75cace19f6fc58a85c3df8e3d0a
1 # Maintainer:  JHeaton <jheaton at archlinux dot us>
2 # Maintainer:  Tristero <tristero@online.de>
3 # Contributor: funkyou
5 pkgname=retroshare
6 _pkgver=0.5.2
7 pkgver=${_pkgver}a
8 pkgrel=1
9 pkgdesc="Serverless encrypted instant messenger with filesharing, chatgroups, e-mail."
10 arch=('i686' 'x86_64')
11 url="http://retroshare.sourceforge.net/"
12 license=('LGPL' 'GPL')
13 depends=('qt' 'openssl' 'libupnp' 'gpgme' 'libgnome-keyring' 'mesa' 'libxss')
14 install="${pkgname}.install"
16 source=(http://sourceforge.net/projects/retroshare/files/RetroShare/${pkgver}/RetroShare-v${pkgver}.tar.gz/download \
17         ${pkgname}.desktop)
19 build() {
21   # NOTE Setting this to TRUE activates the compilation and packaging
22   # of the plugins which are not yet officially released.
23   local _USE_PLUGINS=FALSE
25   # NOTE Setting this to TRUE activates the compilation and packaging
26   # of retroshare-nogui
27   local _USE_NOGUI=FALSE
29   cd ${srcdir}
31   msg "Compile libbitdht"
32   cd ${srcdir}/trunk/libbitdht/src
33   qmake
34   make
36   msg "Compile libretroshare"
37   cd ${srcdir}/trunk/libretroshare/src
38   qmake
39   make
41   if [ "x$_USE_PLUGINS" == "xTRUE" ] ; then
43     msg "Compile retroshare plugins"
44     cd ${srcdir}/trunk/plugins
45     qmake
46     make
47     cd ${srcdir}/trunk/plugins/ColorCode_plugin
48     qmake
49     make
50     cd ${srcdir}/trunk/plugins/i2pmessenger_plugin
51     qmake
52     make
53     cd ${srcdir}/trunk/plugins/patience_plugin/Patience
54     qmake
55     make
56     cd ${srcdir}/trunk/plugins/qsolocards_plugin
57     qmake
58     make
59     cd ${srcdir}/trunk/plugins/smplayer_plugin
60     qmake
61     make
62     cd ${srcdir}/trunk/plugins/stegosaurus_plugin
63     qmake
64     make
65   fi
67   msg "Compile retroshare-gui"
68   cd ${srcdir}/trunk/retroshare-gui/src
69   qmake
70   make
72   if [ "x$_USE_NOGUI" == "xTRUE" ] ; then
74     msg "Compile retroshare-nogui"
75     cd ${srcdir}/trunk/retroshare-nogui/src
76     qmake
77     make
78   fi
80   # --- Install Files ---
82   msg "Install files to fakeroot-environment"
84   # - Binaries
85   install -D -m 644 \
86     "${srcdir}/trunk/libbitdht/src/lib/libbitdht.a" \
87     "${pkgdir}/usr/lib/libbitdht.a"
88   install -D -m 644 \
89     "${srcdir}/trunk/libretroshare/src/lib/libretroshare.a" \
90     "${pkgdir}/usr/lib/libretroshare.a"
91   install -D -m 755 \
92     "${srcdir}/trunk/retroshare-gui/src/RetroShare" \
93     "${pkgdir}/usr/bin/${pkgname}"
95   if [ "x$_USE_NOGUI" == "xTRUE" ] ; then
96     install -D -m 755 \
97         "${srcdir}/trunk/retroshare-nogui/src/retroshare-nogui" \
98         "${pkgdir}/usr/bin/${pkgname}-nogui"
99   fi
101   # plugins
103   if [ "x$_USE_PLUGINS" == "xTRUE" ] ; then
105     install -D -m 755 \
106         "${srcdir}/trunk/plugins/bin/libcalendar_plugin.so" \
107         "${pkgdir}/usr/lib/retroshare/plugins/libcalendar_plugin.so"
108     install -D -m 755 \
109         "${srcdir}/trunk/plugins/bin/libcolorcode_plugin.so" \
110         "${pkgdir}/usr/lib/retroshare/plugins/libcolorcode_plugin.so"
111     install -D -m 755 \
112         "${srcdir}/trunk/plugins/bin/libi2pmessenger_plugin.so" \
113         "${pkgdir}/usr/lib/retroshare/plugins/libi2pmessenger_plugin.so"
114     install -D -m 755 \
115         "${srcdir}/trunk/plugins/bin/libpatience_plugin.so" \
116         "${pkgdir}/usr/lib/retroshare/plugins/libpatience_plugin.so"
117     install -D -m 755 \
118         "${srcdir}/trunk/plugins/bin/libpuzzle_plugin.so" \
119         "${pkgdir}/usr/lib/retroshare/plugins/libpuzzle_plugin.so"
120     install -D -m 755 \
121         "${srcdir}/trunk/plugins/bin/libqcheckers_plugin.so" \
122         "${pkgdir}/usr/lib/retroshare/plugins/libqcheckers_plugin.so"
123     install -D -m 755 \
124         "${srcdir}/trunk/plugins/bin/libqdiagram_plugin.so" \
125         "${pkgdir}/usr/lib/retroshare/plugins/libqdiagram_plugin.so"
126     install -D -m 755 \
127         "${srcdir}/trunk/plugins/bin/libqsolocards_plugin.so" \
128         "${pkgdir}/usr/lib/retroshare/plugins/libqsolocards_plugin.so"
129     install -D -m 755 \
130         "${srcdir}/trunk/plugins/bin/libsmplayer_plugin.so" \
131         "${pkgdir}/usr/lib/retroshare/plugins/libsmplayer_plugin.so"
132     install -D -m 755 \
133         "${srcdir}/trunk/plugins/bin/libstegosaurus_plugin.so" \
134         "${pkgdir}/usr/lib/retroshare/plugins/libstegosaurus_plugin.so"
135   fi
137   # - Icons
138   install -D -m 644 \
139     "${srcdir}/trunk/retroshare-gui/src/gui/images/retrosharelogo1.png" \
140     "${pkgdir}/usr/share/pixmaps/retroshare_blue.png"
141   install -D -m 644 \
142     "${srcdir}/trunk/retroshare-gui/src/gui/images/retrosharelogo2.png" \
143     "${pkgdir}/usr/share/pixmaps/retroshare.png"
145   # - Desktop File
146   install -D -m 644 \
147     "${srcdir}/${pkgname}.desktop" \
148     "${pkgdir}/usr/share/applications/${pkgname}.desktop"
150 md5sums=('8253e516ec2378ede39a46e9f0a4461a'
151          'f6dc374d95c775bc587ef13841abdab2')