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

Laurent Carlier lcarlier at archlinux.org
Fri Sep 29 20:00:46 UTC 2017


    Date: Friday, September 29, 2017 @ 20:00:45
  Author: lcarlier
Revision: 306479

archrelease: copy trunk to testing-any

Added:
  libclc/repos/testing-any/
  libclc/repos/testing-any/PKGBUILD
    (from rev 306478, libclc/trunk/PKGBUILD)

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

Copied: libclc/repos/testing-any/PKGBUILD (from rev 306478, libclc/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2017-09-29 20:00:45 UTC (rev 306479)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+
+pkgname=libclc
+pkgver=0.2.0+374+0c31bd5
+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.git#commit=0c31bd5')
+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