summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gruber2015-06-21 23:22:46 +0200
committerJakob Gruber2015-06-21 23:24:50 +0200
commiteffb8481fe028844bdd88d283f522b85e745c596 (patch)
treebded9c01016b609cacaba8683e4c2d6f61c0a3e2
downloadaur-cilk.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..86e538f50da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = cilk
+ pkgdesc = General-purpose programming language designed for multithreaded parallel computing.
+ pkgver = 5.4.6
+ pkgrel = 3
+ url = http://supertech.csail.mit.edu/cilk/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = gcc
+ depends = glibc
+ options = !makeflags
+ options = staticlibs
+ options = !libtool
+ source = http://supertech.csail.mit.edu/cilk/cilk-5.4.6.tar.gz
+ md5sums = 8ee528dee8072d158687560735a8d15b
+
+pkgname = cilk
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0eee12d8e6c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: schuay <jakob.gruber@gmail.com>
+
+pkgname=cilk
+pkgver=5.4.6
+pkgrel=3
+pkgdesc='General-purpose programming language designed for multithreaded parallel computing.'
+arch=('i686' 'x86_64')
+license=('GPL')
+url='http://supertech.csail.mit.edu/cilk/'
+depends=('gcc' 'glibc')
+options=('!makeflags' 'staticlibs' '!libtool')
+source=("http://supertech.csail.mit.edu/cilk/${pkgname}-${pkgver}.tar.gz")
+md5sums=('8ee528dee8072d158687560735a8d15b')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ # See https://groups.google.com/forum/?fromgroups=#!topic/comp.os.linux.development.apps/UiqFsaH69Aw
+ CFLAGS='-O2' ./configure CFLAGS="-O2 -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L" \
+ CC="gcc -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L" --prefix=/usr
+
+ make
+}
+
+check() {
+ cd $srcdir/$pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make prefix=$pkgdir/usr install
+}