[arch-commits] Commit in ispc/repos (4 files)

2019-03-25 Thread Evangelos Foutras via arch-commits
Date: Tuesday, March 26, 2019 @ 03:57:55
  Author: foutrelis
Revision: 443531

archrelease: copy trunk to community-staging-x86_64

Added:
  ispc/repos/community-staging-x86_64/
  
ispc/repos/community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch
(from rev 443530, ispc/trunk/0001-Remove-uses-of-LLVM-dump-functions.patch)
  ispc/repos/community-staging-x86_64/Makefile.patch
(from rev 443530, ispc/trunk/Makefile.patch)
  ispc/repos/community-staging-x86_64/PKGBUILD
(from rev 443530, ispc/trunk/PKGBUILD)

---+
 0001-Remove-uses-of-LLVM-dump-functions.patch |   68 
 Makefile.patch|  130 
 PKGBUILD  |   37 ++
 3 files changed, 235 insertions(+)

Copied: 
ispc/repos/community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch
 (from rev 443530, ispc/trunk/0001-Remove-uses-of-LLVM-dump-functions.patch)
===
--- community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch  
(rev 0)
+++ community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch  
2019-03-26 03:57:55 UTC (rev 443531)
@@ -0,0 +1,68 @@
+diff --git a/src/llvmutil.cpp b/src/llvmutil.cpp
+--- a/src/llvmutil.cpp
 b/src/llvmutil.cpp
+@@ -45,6 +45,7 @@
+   #include 
+   #include 
+ #endif
++#include 
+ #include 
+ #include 
+ 
+@@ -1550,7 +1551,7 @@ lDumpValue(llvm::Value *v, std::set 
) {
+ return;
+ 
+ fprintf(stderr, "  ");
+-v->dump();
++v->print(llvm::errs());
+ done.insert(v);
+ 
+ if (inst == NULL)
+diff --git a/src/opt.cpp b/src/opt.cpp
+--- a/src/opt.cpp
 b/src/opt.cpp
+@@ -173,7 +173,7 @@ static llvm::Pass *CreatePromoteLocalToPrivatePass();
+   strlen(getenv("FUNC") {   \
+ fprintf(stderr, "Start of " NAME "\n");\
+ fprintf(stderr, "---\n");  \
+-bb.dump(); \
++bb.print(llvm::errs());\
+ fprintf(stderr, "---\n\n");\
+ } else /* eat semicolon */
+ 
+@@ -184,7 +184,7 @@ static llvm::Pass *CreatePromoteLocalToPrivatePass();
+   strlen(getenv("FUNC") {   \
+ fprintf(stderr, "End of " NAME " %s\n", modifiedAny ? "** CHANGES **" 
: ""); \
+ fprintf(stderr, "---\n");  \
+-bb.dump(); \
++bb.print(llvm::errs());\
+ fprintf(stderr, "---\n\n");\
+ } else /* eat semicolon */
+ 
+@@ -537,7 +537,7 @@ void
+ Optimize(llvm::Module *module, int optLevel) {
+ if (g->debugPrint) {
+ printf("*** Code going into optimization ***\n");
+-module->dump();
++module->print(llvm::errs(), nullptr);
+ }
+ DebugPassManager optPM;
+ optPM.add(llvm::createVerifierPass(),0);
+@@ -932,7 +932,7 @@ Optimize(llvm::Module *module, int optLevel) {
+ 
+ if (g->debugPrint) {
+ printf("\n*\nFINAL OUTPUT\n*\n");
+-module->dump();
++module->print(llvm::errs(), nullptr);
+ }
+ 
+ }
+@@ -4895,7 +4895,7 @@ bool
+ DebugPass::runOnModule(llvm::Module ) {
+ fprintf(stderr, "%s", str_output);
+ fflush(stderr);
+-module.dump();
++module.print(llvm::errs(), nullptr);
+ return true;
+ }
+ 

Copied: ispc/repos/community-staging-x86_64/Makefile.patch (from rev 443530, 
ispc/trunk/Makefile.patch)
===
--- community-staging-x86_64/Makefile.patch (rev 0)
+++ community-staging-x86_64/Makefile.patch 2019-03-26 03:57:55 UTC (rev 
443531)
@@ -0,0 +1,130 @@
+--- a/Makefile
 b/Makefile
+@@ -175,11 +175,11 @@
+   $(LLVM_VERSION_DEF) \
+   -Wall \
+   -DBUILD_DATE="\"$(BUILD_DATE)\"" -DBUILD_VERSION="\"$(BUILD_VERSION)\"" 
\
+-  -Wno-sign-compare -Wno-unused-function $(WERROR)
++  -Wno-sign-compare -Wno-unused-function
+ 
+ # if( !($(LLVM_VERSION) == LLVM_3_2 || $(LLVM_VERSION) == LLVM_3_3 || 
$(LLVM_VERSION) == LLVM_3_4))
+ ifeq (,$(filter $(LLVM_VERSION), LLVM_3_2 LLVM_3_3 LLVM_3_4))
+-  CXXFLAGS+=-std=c++11 -Wno-c99-extensions -Wno-deprecated-register 
-fno-rtti
++  CXXFLAGS+=-std=c++11 -fno-rtti
+ endif
+ ifneq ($(ARM_ENABLED), 0)
+ CXXFLAGS+=-DISPC_ARM_ENABLED
+@@ -240,7 +240,7 @@
+ 
+ depend: llvm_check $(CXX_SRC) $(HEADERS)
+   @echo Updating dependencies
+-  @$(CXX) -MM $(CXXFLAGS) $(CXX_SRC) | sed 's_^\([a-z]\)_objs/\1_g' > 
depend
++  $(CXX) -MM $(CXXFLAGS) $(CXX_SRC) | sed 's_^\([a-z]\)_objs/\1_g' > 
depend
+ 
+ -include depend
+ 
+@@ -273,7 +273,7 @@
+ 
+ ispc: 

[arch-commits] Commit in ispc/repos (4 files)

2018-03-17 Thread Lukas Jirkovsky via arch-commits
Date: Saturday, March 17, 2018 @ 19:29:48
  Author: stativ
Revision: 308975

archrelease: copy trunk to community-staging-x86_64

Added:
  ispc/repos/community-staging-x86_64/
  
ispc/repos/community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch
(from rev 308974, ispc/trunk/0001-Remove-uses-of-LLVM-dump-functions.patch)
  ispc/repos/community-staging-x86_64/PKGBUILD
(from rev 308974, ispc/trunk/PKGBUILD)
  ispc/repos/community-staging-x86_64/llvm6.0_compat.diff
(from rev 308974, ispc/trunk/llvm6.0_compat.diff)

---+
 0001-Remove-uses-of-LLVM-dump-functions.patch |   84 
 PKGBUILD  |   37 ++
 llvm6.0_compat.diff   |   13 +++
 3 files changed, 134 insertions(+)

Copied: 
ispc/repos/community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch
 (from rev 308974, ispc/trunk/0001-Remove-uses-of-LLVM-dump-functions.patch)
===
--- community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch  
(rev 0)
+++ community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch  
2018-03-17 19:29:48 UTC (rev 308975)
@@ -0,0 +1,84 @@
+From 758e152a4832311818ea5b2bff0ac2e438b7a88a Mon Sep 17 00:00:00 2001
+From: Tom Stellard 
+Date: Tue, 24 Oct 2017 09:45:53 -0700
+Subject: [PATCH] Remove uses of LLVM dump() functions
+
+These aren't exposed in release builds.
+---
+ llvmutil.cpp |  3 ++-
+ opt.cpp  | 10 +-
+ 2 files changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/llvmutil.cpp b/llvmutil.cpp
+index 02bd729..b98b5f1 100644
+--- a/llvmutil.cpp
 b/llvmutil.cpp
+@@ -45,6 +45,7 @@
+   #include 
+   #include 
+ #endif
++#include 
+ #include 
+ #include 
+ 
+@@ -1516,7 +1517,7 @@ lDumpValue(llvm::Value *v, std::set 
) {
+ return;
+ 
+ fprintf(stderr, "  ");
+-v->dump();
++v->print(llvm::errs());
+ done.insert(v);
+ 
+ if (inst == NULL)
+diff --git a/opt.cpp b/opt.cpp
+index ef9e4c5..48106f4 100644
+--- a/opt.cpp
 b/opt.cpp
+@@ -169,7 +169,7 @@ static llvm::Pass *CreatePromoteLocalToPrivatePass();
+   strlen(getenv("FUNC") {   \
+ fprintf(stderr, "Start of " NAME "\n");\
+ fprintf(stderr, "---\n");  \
+-bb.dump(); \
++bb.print(llvm::errs());\
+ fprintf(stderr, "---\n\n");\
+ } else /* eat semicolon */
+ 
+@@ -180,7 +180,7 @@ static llvm::Pass *CreatePromoteLocalToPrivatePass();
+   strlen(getenv("FUNC") {   \
+ fprintf(stderr, "End of " NAME " %s\n", modifiedAny ? "** CHANGES **" 
: ""); \
+ fprintf(stderr, "---\n");  \
+-bb.dump(); \
++bb.print(llvm::errs());\
+ fprintf(stderr, "---\n\n");\
+ } else /* eat semicolon */
+ 
+@@ -533,7 +533,7 @@ void
+ Optimize(llvm::Module *module, int optLevel) {
+ if (g->debugPrint) {
+ printf("*** Code going into optimization ***\n");
+-module->dump();
++module->print(llvm::errs(), nullptr);
+ }
+ DebugPassManager optPM;
+ optPM.add(llvm::createVerifierPass(),0);
+@@ -928,7 +928,7 @@ Optimize(llvm::Module *module, int optLevel) {
+ 
+ if (g->debugPrint) {
+ printf("\n*\nFINAL OUTPUT\n*\n");
+-module->dump();
++module->print(llvm::errs(), nullptr);
+ }
+ 
+ }
+@@ -4859,7 +4859,7 @@ bool
+ DebugPass::runOnModule(llvm::Module ) {
+ fprintf(stderr, "%s", str_output);
+ fflush(stderr);
+-module.dump();
++module.print(llvm::errs(), nullptr);
+ return true;
+ }
+ 
+-- 
+1.8.3.1
+

Copied: ispc/repos/community-staging-x86_64/PKGBUILD (from rev 308974, 
ispc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-17 19:29:48 UTC (rev 308975)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky 
+# Maintainer: Bruno Pagani 
+
+pkgname=ispc
+pkgver=1.9.2
+pkgrel=2
+pkgdesc="A compiler for high-performance SIMD programming on the CPU"
+arch=('x86_64')
+url="https://ispc.github.io/;
+license=('BSD')
+depends=('ncurses' 'zlib' 'llvm-libs')
+makedepends=('llvm' 'clang' 'python' 'lib32-glibc')
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;
+'0001-Remove-uses-of-LLVM-dump-functions.patch' # Borrowed from Fedora
+'llvm6.0_compat.diff')

[arch-commits] Commit in ispc/repos (4 files)

2015-09-09 Thread Evangelos Foutras
Date: Thursday, September 10, 2015 @ 05:05:20
  Author: foutrelis
Revision: 139723

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  ispc/repos/community-staging-i686/
  ispc/repos/community-staging-i686/PKGBUILD
(from rev 139722, ispc/trunk/PKGBUILD)
  ispc/repos/community-staging-x86_64/
  ispc/repos/community-staging-x86_64/PKGBUILD
(from rev 139722, ispc/trunk/PKGBUILD)

---+
 community-staging-i686/PKGBUILD   |   34 ++
 community-staging-x86_64/PKGBUILD |   34 ++
 2 files changed, 68 insertions(+)

Copied: ispc/repos/community-staging-i686/PKGBUILD (from rev 139722, 
ispc/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-10 03:05:20 UTC (rev 139723)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky 
+pkgname=ispc
+pkgver=1.8.2
+pkgrel=2
+pkgdesc="A compiler for high-performance SIMD programming on the CPU"
+arch=('i686' 'x86_64')
+url="https://ispc.github.io/;
+license=('BSD')
+depends=('zlib')
+makedepends=('llvm' 'clang' 'python2')
+source=("$pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
+md5sums=('ef99fb9e5fe5ca59d429ea8d0e6affd0')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  # fix python version
+  find . -name "*.py" -exec sed -i 's|python$|python2|' '{}' ';'
+  sed -i 's|python |python2 |' Makefile
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  install -D -m755 ispc "$pkgdir/usr/bin/ispc"
+  install -D -m644 LICENSE.txt 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+

Copied: ispc/repos/community-staging-x86_64/PKGBUILD (from rev 139722, 
ispc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2015-09-10 03:05:20 UTC (rev 139723)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky 
+pkgname=ispc
+pkgver=1.8.2
+pkgrel=2
+pkgdesc="A compiler for high-performance SIMD programming on the CPU"
+arch=('i686' 'x86_64')
+url="https://ispc.github.io/;
+license=('BSD')
+depends=('zlib')
+makedepends=('llvm' 'clang' 'python2')
+source=("$pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
+md5sums=('ef99fb9e5fe5ca59d429ea8d0e6affd0')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  # fix python version
+  find . -name "*.py" -exec sed -i 's|python$|python2|' '{}' ';'
+  sed -i 's|python |python2 |' Makefile
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  install -D -m755 ispc "$pkgdir/usr/bin/ispc"
+  install -D -m644 LICENSE.txt 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+


[arch-commits] Commit in ispc/repos (4 files)

2015-08-30 Thread Lukas Jirkovsky
Date: Sunday, August 30, 2015 @ 08:40:01
  Author: stativ
Revision: 138963

archrelease: copy trunk to community-i686, community-x86_64

Added:
  ispc/repos/community-i686/PKGBUILD
(from rev 138962, ispc/trunk/PKGBUILD)
  ispc/repos/community-x86_64/PKGBUILD
(from rev 138962, ispc/trunk/PKGBUILD)
Deleted:
  ispc/repos/community-i686/PKGBUILD
  ispc/repos/community-x86_64/PKGBUILD

---+
 /PKGBUILD |   68 
 community-i686/PKGBUILD   |   34 --
 community-x86_64/PKGBUILD |   34 --
 3 files changed, 68 insertions(+), 68 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2015-08-30 06:39:46 UTC (rev 138962)
+++ community-i686/PKGBUILD 2015-08-30 06:40:01 UTC (rev 138963)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer: Lukas Jirkovsky l.jirkov...@gmail.com
-pkgname=ispc
-pkgver=1.8.1
-pkgrel=1
-pkgdesc=A compiler for high-performance SIMD programming on the CPU
-arch=('i686' 'x86_64')
-url=https://ispc.github.io/;
-license=('BSD')
-depends=('zlib')
-makedepends=('llvm' 'clang' 'python2')
-source=($pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
-md5sums=('d2088f719afc1e0e98f3af89676a189c')
-
-prepare() {
-  cd $srcdir/$pkgname-$pkgver
-  # fix python version
-  find . -name *.py -exec sed -i 's|python$|python2|' '{}' ';'
-  sed -i 's|python |python2 |' Makefile
-}
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-
-  install -D -m755 ispc $pkgdir/usr/bin/ispc
-  install -D -m644 LICENSE.txt 
$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
-}
-

Copied: ispc/repos/community-i686/PKGBUILD (from rev 138962, 
ispc/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-08-30 06:40:01 UTC (rev 138963)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky l.jirkov...@gmail.com
+pkgname=ispc
+pkgver=1.8.2
+pkgrel=1
+pkgdesc=A compiler for high-performance SIMD programming on the CPU
+arch=('i686' 'x86_64')
+url=https://ispc.github.io/;
+license=('BSD')
+depends=('zlib')
+makedepends=('llvm' 'clang' 'python2')
+source=($pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
+md5sums=('ef99fb9e5fe5ca59d429ea8d0e6affd0')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # fix python version
+  find . -name *.py -exec sed -i 's|python$|python2|' '{}' ';'
+  sed -i 's|python |python2 |' Makefile
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  install -D -m755 ispc $pkgdir/usr/bin/ispc
+  install -D -m644 LICENSE.txt 
$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+}
+

Deleted: community-x86_64/PKGBUILD
===
--- community-x86_64/PKGBUILD   2015-08-30 06:39:46 UTC (rev 138962)
+++ community-x86_64/PKGBUILD   2015-08-30 06:40:01 UTC (rev 138963)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer: Lukas Jirkovsky l.jirkov...@gmail.com
-pkgname=ispc
-pkgver=1.8.1
-pkgrel=1
-pkgdesc=A compiler for high-performance SIMD programming on the CPU
-arch=('i686' 'x86_64')
-url=https://ispc.github.io/;
-license=('BSD')
-depends=('zlib')
-makedepends=('llvm' 'clang' 'python2')
-source=($pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
-md5sums=('d2088f719afc1e0e98f3af89676a189c')
-
-prepare() {
-  cd $srcdir/$pkgname-$pkgver
-  # fix python version
-  find . -name *.py -exec sed -i 's|python$|python2|' '{}' ';'
-  sed -i 's|python |python2 |' Makefile
-}
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-
-  install -D -m755 ispc $pkgdir/usr/bin/ispc
-  install -D -m644 LICENSE.txt 
$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
-}
-

Copied: ispc/repos/community-x86_64/PKGBUILD (from rev 138962, 
ispc/trunk/PKGBUILD)
===
--- community-x86_64/PKGBUILD   (rev 0)
+++ community-x86_64/PKGBUILD   2015-08-30 06:40:01 UTC (rev 138963)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky l.jirkov...@gmail.com
+pkgname=ispc
+pkgver=1.8.2
+pkgrel=1
+pkgdesc=A compiler for high-performance SIMD programming on the CPU
+arch=('i686' 'x86_64')
+url=https://ispc.github.io/;
+license=('BSD')
+depends=('zlib')
+makedepends=('llvm' 'clang' 'python2')
+source=($pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
+md5sums=('ef99fb9e5fe5ca59d429ea8d0e6affd0')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # fix python version
+  find . -name *.py -exec sed -i 's|python$|python2|' '{}' ';'
+  sed -i 's|python |python2 |' Makefile
+}
+
+build() {
+  cd 

[arch-commits] Commit in ispc/repos (4 files)

2015-03-11 Thread Lukas Jirkovsky
Date: Wednesday, March 11, 2015 @ 21:31:18
  Author: stativ
Revision: 129084

archrelease: copy trunk to community-i686, community-x86_64

Added:
  ispc/repos/community-i686/
  ispc/repos/community-i686/PKGBUILD
(from rev 129083, ispc/trunk/PKGBUILD)
  ispc/repos/community-x86_64/
  ispc/repos/community-x86_64/PKGBUILD
(from rev 129083, ispc/trunk/PKGBUILD)

---+
 community-i686/PKGBUILD   |   34 ++
 community-x86_64/PKGBUILD |   34 ++
 2 files changed, 68 insertions(+)

Copied: ispc/repos/community-i686/PKGBUILD (from rev 129083, 
ispc/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-03-11 20:31:18 UTC (rev 129084)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky l.jirkov...@gmail.com
+pkgname=ispc
+pkgver=1.8.1
+pkgrel=1
+pkgdesc=A compiler for high-performance SIMD programming on the CPU
+arch=('i686' 'x86_64')
+url=https://ispc.github.io/;
+license=('BSD')
+depends=('zlib')
+makedepends=('llvm' 'clang' 'python2')
+source=($pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
+md5sums=('d2088f719afc1e0e98f3af89676a189c')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # fix python version
+  find . -name *.py -exec sed -i 's|python$|python2|' '{}' ';'
+  sed -i 's|python |python2 |' Makefile
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  install -D -m755 ispc $pkgdir/usr/bin/ispc
+  install -D -m644 LICENSE.txt 
$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+}
+

Copied: ispc/repos/community-x86_64/PKGBUILD (from rev 129083, 
ispc/trunk/PKGBUILD)
===
--- community-x86_64/PKGBUILD   (rev 0)
+++ community-x86_64/PKGBUILD   2015-03-11 20:31:18 UTC (rev 129084)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky l.jirkov...@gmail.com
+pkgname=ispc
+pkgver=1.8.1
+pkgrel=1
+pkgdesc=A compiler for high-performance SIMD programming on the CPU
+arch=('i686' 'x86_64')
+url=https://ispc.github.io/;
+license=('BSD')
+depends=('zlib')
+makedepends=('llvm' 'clang' 'python2')
+source=($pkgname-${pkgver}.tar.gz::https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz;)
+md5sums=('d2088f719afc1e0e98f3af89676a189c')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # fix python version
+  find . -name *.py -exec sed -i 's|python$|python2|' '{}' ';'
+  sed -i 's|python |python2 |' Makefile
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  install -D -m755 ispc $pkgdir/usr/bin/ispc
+  install -D -m644 LICENSE.txt 
$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+}
+