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

Laurent Carlier lcarlier at archlinux.org
Thu Oct 27 11:00:12 UTC 2016


    Date: Thursday, October 27, 2016 @ 11:00:11
  Author: lcarlier
Revision: 279323

archrelease: copy trunk to staging-any

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

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

Copied: libclc/repos/staging-any/PKGBUILD (from rev 279322, libclc/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2016-10-27 11:00:11 UTC (rev 279323)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+
+pkgname=libclc
+pkgver=0.2.0+334+520743b
+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=520743b')
+md5sums=(SKIP)
+
+pkgver() {
+  cd libclc
+
+  echo 0.2.0+$(git rev-list --count HEAD)+$(git describe --always)
+  #git describe --long | sed 's/-/+/g'
+}
+
+build() {
+  cd libclc
+  
+  sed -i 's/"python < $in >/sys.executable + " < $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