1 # Maintainer: ponsfoot <cabezon dot hashimoto at gmail dot com>
2 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 # Contributor: Michal Krenek <mikos@sg1.cz>
8 #_mod=boinc_core_release_6_12_34
12 _svntrunk="http://boinc.berkeley.edu/svn/${_root}/${_mod}"
18 arch=('i686' 'x86_64')
19 url="http://boinc.berkeley.edu/"
21 pkgdesc="Berkeley Open Infrastructure for Network Computing"
22 depends=('curl' 'wxgtk' 'libnotify' 'sqlite3')
23 makedepends=('libxslt' 'pkg-config' 'perl-xml-sax' 'subversion')
25 conflicts=('boinc' 'boinc-nox')
32 6.12.26-libnotify-0.7.patch
33 6.12.26-fix_subdirs.patch
34 r24240-ignore_ret_value.patch
36 md5sums=('43605168e310f50cf426d2f9a7b39847'
37 '05ed267db973ef7cbaf1118bb20bf9ce'
38 '17969d849f3cf27c2100b20a7b7a7e64'
39 '7d774000a1c69c84e71704f42129bbd3'
40 'c7da3bb2a697b49cb79ab009ba4e75c8'
41 '68bb3dfac41c20251b543665659f0281')
46 msg "Connecting to boinc.berkeley.edu SVN server..."
47 if [[ -d ${_svnmod}/.svn ]]; then
48 (cd ${_svnmod} ; svn update)
50 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
52 msg "SVN checkout done or server timeout."
54 msg "Starting make..."
55 rm -rf "${srcdir}/${_svnmod}-build"
56 cp -r "${srcdir}/$_svnmod" "${srcdir}/${_svnmod}-build"
57 cd "${srcdir}/${_svnmod}-build"
59 if [[ "$_apply_patch" = "yes" ]]; then
60 if [[ "$_mod" = "boinc_core_release_6_12_34" ]]; then
62 # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sci-misc/boinc/files/
63 patch -p1 -i "${srcdir}/6.12.26-fix_subdirs.patch"
64 patch -p1 -i "${srcdir}/6.12.26-libnotify-0.7.patch"
66 patch -p1 -i "${srcdir}/r24240-ignore_ret_value.patch"
70 _inclds_gtk2="$(pkg-config --cflags --libs gtk+-2.0)"
71 CFLAGS+=" $_inclds_gtk2 -lX11"
72 CXXFLAGS+=" $_inclds_gtk2 -lX11"
75 LC_ALL=C ./_autosetup # Possibility to fail ver. check depending on the localization.
76 ./configure --prefix=/usr \
78 --localstatedir=/var \
83 --with-wxdir=/usr/lib \
84 --with-wx-config=$(which wx-config) \
85 --enable-dynamic-client-linkage \
91 cd "${srcdir}/${_svnmod}-build"
93 make DESTDIR=${pkgdir} install
96 install -D -m755 "${srcdir}/boinc.rc" ${pkgdir}/etc/rc.d/boinc
98 #install bash-completion
99 install -D -m644 "${srcdir}/boinc.bash" ${pkgdir}/etc/bash_completion.d/boinc
101 #install .desktop File
102 install -D -m644 "${srcdir}/boinc.desktop" \
103 ${pkgdir}/usr/share/applications/boinc.desktop
106 install -D -m644 "${srcdir}/${_svnmod}-build/clientgui/res/boincmgr.48x48.png" \
107 ${pkgdir}/usr/share/pixmaps/boinc.png
109 #killing /etc/init.d directory
110 rm -rf ${pkgdir}/etc/init.d