Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Modified PKGBUILD cilk

By: a guest on Dec 10th, 2012  |  syntax: None  |  size: 0.92 KB  |  views: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Tianyi Cui <tianyicui@gmail.com>
  2. pkgname=cilk
  3. pkgver=5.4.6
  4. pkgrel=1
  5. pkgdesc="General-purpose programming language designed for multithreaded parallel computing."
  6. arch=(i686 x86_64)
  7. license=('GPL')
  8. url="http://supertech.csail.mit.edu/cilk/"
  9. depends=('gcc>=2.9.5' 'glibc>=2.1')
  10. options=('!makeflags')
  11. source=(http://supertech.csail.mit.edu/cilk/${pkgname}-${pkgver}.tar.gz)
  12. md5sums=('8ee528dee8072d158687560735a8d15b')
  13.  
  14. build() {
  15.   cd $srcdir/$pkgname-$pkgver
  16.   CFLAGS='-O2' ./configure CFLAGS="-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L" CC="gcc -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L" --prefix=/usr || return 1
  17.   make || return 1
  18.   make check || (echo 'Test failed...'; return 1)
  19. }
  20.  
  21. package() {
  22.   cd $srcdir/$pkgname-$pkgver
  23.   make prefix="$pkgdir"/usr install
  24.   mkdir -p "$pkgdir"/usr/share/$pkgname
  25.   cd $srcdir/$pkgname-$pkgver/doc
  26.   install -c -m 644 manual.pdf "$pkgdir"/usr/share/$pkgname
  27. }