blob: ee9037e91ca2bc033a849a165388799a69f2613a (
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
|
# 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
name=boinc-nox
_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
rm $PKG/usr/bin/boincmgr
rm -fr $PKG/usr/share/boinc
}
|