updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / xkaapi / PKGBUILD
blob600d710008cf39991731245c480a23b986fd44d9
1 # Maintainer: Kniyl <mathias dot ettinger at gmail dot com>
3 pkgname=xkaapi
4 pkgver=1.0.0
5 pkgrel=1
6 pkgdesc="C++ library that implements work stealing algorithm for multithreaded computation"
7 url="http://kaapi.gforge.inria.fr/dokuwiki/doku.php"
8 arch=('i686' 'x86_64')
9 license=('CeCILL')
10 depends=('glibc' 'hwloc')
11 source=('https://gforge.inria.fr/frs/download.php/30006/xkaapi-1.0.0.tar.gz')
12 md5sums=('1161d13a6e7becca1803c8ee3abb06dd')
14 build() {
15   cd "${srcdir}"
16   rm -rf ${pkgname}-build
17   cp -r ${pkgname}-${pkgver//_/-} ${pkgname}-build
19   msg "Applying patches..."
20         sed -i 's|  bool work_queue|  inline bool work_queue|g' \
21                 ${pkgname}-build/api/kastl/kastl/kastl_workqueue.h 
22   
23   cd ${pkgname}-build
25   msg "Starting make..."
26   ./configure \
27     --prefix=/usr \
28     --enable-mode=release \
29     --disable-api-kaapif \
30     --enable-api-kaapic \
31     --enable-api-kaapixx \
32     --enable-api-kastl 
34   make
37 package() {
38   cd ${pkgname}-build
40   make DESTDIR="${pkgdir}" install