[arch-commits] Commit in libclc/repos (staging-any staging-any/PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Thu Sep 17 16:13:30 UTC 2015


    Date: Thursday, September 17, 2015 @ 18:13:29
  Author: lcarlier
Revision: 246445

archrelease: copy trunk to staging-any

Added:
  libclc/repos/staging-any/
  libclc/repos/staging-any/PKGBUILD
    (from rev 246444, libclc/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: libclc/repos/staging-any/PKGBUILD (from rev 246444, libclc/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-17 16:13:29 UTC (rev 246445)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+
+pkgname=libclc
+pkgver=0.2.0+274+4346c30
+pkgrel=1
+pkgdesc="Library requirements of the OpenCL C programming language"
+arch=('any')
+url="http://libclc.llvm.org/"
+license=('MIT')
+makedepends=('clang' 'llvm' 'python2' 'git')
+options=('staticlibs')
+source=('git+http://llvm.org/git/libclc#commit=4346c30')
+md5sums=(SKIP)
+
+pkgver() {
+  cd libclc
+
+  echo 0.2.0+$(git rev-list --count master)+$(git describe --always)
+  #git describe --long | sed 's/-/+/g'
+}
+
+build() {
+  cd libclc
+  
+  sed -i 's/"python < $in >/sys.executable + " < $in >/g' configure.py
+#  sed -i 's/python < $in >/python2 < $in >/g' configure.py
+  
+  python2 ./configure.py --prefix=/usr
+  make
+}
+
+package() {
+  cd libclc
+  
+  make install DESTDIR="$pkgdir"
+  install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list