summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 549e967c781c650a8d4ba3b25826e5e1277cf704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Laurent Carlier <lordheavym@gmail.com>
# Maintainer: Solomon Choina <shlomochoina@gmail.com>
pkgname=libclc-git
pkgver=r585.9f6204e
pkgrel=1
epoch=1
groups=('mesagit')
pkgdesc="Library requirements of the OpenCL C programming language (git version)"
arch=('i686' 'x86_64')
url="http://libclc.llvm.org/"
license=('MIT')
provides=('libclc')
replaces=('libclc-amdgpu-git')
conflicts=('libclc-amdgpu-git')
makedepends=('clang-git' 'git' 'python2')
options=('staticlibs')
source=('libclc::git+http://llvm.org/git/libclc.git')
md5sums=(SKIP)

pkgver() {
  cd libclc
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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
  sed -i 's/-fno-plt//g' Makefile
  make
}

package() {
  cd libclc
  
  make install DESTDIR="$pkgdir"
  install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}