updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xkaapi-git / PKGBUILD
blobf9abd2819029496d335592c40fa8da4a37064e1c
1 # Maintainer: Kniyl <mathias dot ettinger at gmail dot com>
3 pkgname=xkaapi-git
4 pkgver=20111220
5 pkgrel=1
6 pkgdesc="C++ library that implements work stealing algorithm for multithreaded computation (Git version)"
7 url="http://kaapi.gforge.inria.fr/dokuwiki/doku.php"
8 arch=('i686' 'x86_64')
9 makedepends=('git')
10 provides=('xkaapi')
11 conflicts=('xkaapi')
12 depends=('glibc' 'hwloc')
13 license=('CeCILL')
15 _gitroot='git://git.ligforge.imag.fr/git/kaapi/xkaapi.git'
16 _gitname='xkaapi'
18 build() {
19   msg "Connecting to git.ligforge.imag.fr GIT server...."
21   if [ -d ${_gitname} ] ; then
22     cd ${_gitname} && git pull origin
23     msg "The local files are updated."
24   else
25     git clone ${_gitroot} ${_gitname}
26   fi
27   msg "GIT checkout done. Preparing sources..."
29   cd "${srcdir}"
30   rm -rf ${_gitname}-build
31   cp -r ${_gitname} ${_gitname}-build
32   
33         msg "Applying patches..."
34         sed -i 's|  bool work_queue|  inline bool work_queue|g' \
35                 ${_gitname}-build/api/kastl/kastl/kastl_workqueue.h 
36         cd ${_gitname}-build
38   msg "Starting make..."
40         ./bootstrap
41         ./configure \
42                 --prefix=/usr \
43                 --enable-mode=release \
44                 --disable-api-kaapif \
45                 --enable-api-kaapic \
46                 --enable-api-kaapixx \
47                 --enable-api-kastl 
49   make
52 package() {
53   cd ${_gitname}-build
55   make DESTDIR="${pkgdir}" install
58 # vim: set ts=2 sw=2 ft=sh noet: