summaryrefslogtreecommitdiffstats
path: root/boinc/Pkgfile
blob: b59cf890d277b1660c285459d85d7b29ad74dff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Description: Infrastructure ouverte pour le calcul informatique par réseau de Berkeley
# URL: http://boinc.berkeley.edu/
# Maintainer: Michal Krenek mikos at sgl dot cz
# Packager: lesibel at free dot fr
# Depends on: curl,libxslt,subversion,wxgtk,libnotify
# Run on:curl,libxslt,wxgtk,libnotify

name=boinc
version=6.12.34
release=1
source=(boinc.bash boinc.desktop)

_svnroot=http://boinc.berkeley.edu/svn/trunk
_svnmod=boinc

build() {
	cd $SRC
	svn co ${_svnroot}/${_svnmod}
	rm -fr ${_svnmod}-build
  	cp -r $_svnmod $_svnmod-build
  	cd $_svnmod-build

	./_autosetup

	sed \
	-e "/^CFLAGS =/c CFLAGS = ${CFLAGS}" \
	-e "/^LDFLAGS =/c LDFLAGS = ${LDFLAGS}" \
	-e "/^CXXFLAGS =/c CXXFLAGS = ${CXXFLAGS}" \
	-i {.,*,*/*,*/*/*,*/*/*/*}/Makefile.in
  	sed \
	-e "/^CFLAGS =/c CFLAGS = $(pkg-config --cflags gtk+-2.0) ${CFLAGS}" \
	-e "/^LDFLAGS =/c LDFLAGS = $(pkg-config --libs gtk+-2.0) ${LDFLAGS}" \
	-e "/^CXXFLAGS =/c CXXFLAGS = $(pkg-config --cflags gtk+-2.0) ${CXXFLAGS}" \
	-i clientgui/Makefile.in

  	./configure --prefix=/usr --disable-server --enable-unicode --with-ssl \
              --with-wxdir=/usr/lib --with-wx-config=$(which wx-config) \
              --disable-static --enable-client --enable-manager
	make

	cd $SRC/$_svnmod-build

	make DESTDIR=$PKG install
	
	install -D -m644 $SRC/$name.bash $PKG/etc/bash_completion.d/$name
	install -D -m644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
	install -D -m644 $SRC/${_svnmod}-build/clientgui/res/boincmgr.48x48.png \
    		$PKG/usr/share/pixmaps/$name.png

}