summaryrefslogtreecommitdiff
path: root/libre/libclc-git/PKGBUILD
blob: 4327511462248f0f58e8da99dbeabd0881025f37 (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
41
42
43
# Maintainer: Márcio Silva <coadde@lavabit.com>

_pkgname=libclc
pkgname=$_pkgname-git
pkgver=$(LC_ALL=C date -u +%Y%m%d)
pkgrel=1
arch=(
  mips64el
  x86_64
  i686
)
pkgdesc='Library requirements of the OpenCL C programming language.'
url=(
  http://cgit.freedesktop.org/~tstellar/$_pkgname
  http://libclc.llvm.org/
)
license=MIT
depends=clang
makedepends=(
  git
  python2
)
provides=($_pkgname)
conflicts=$_pkgname
source=git://people.freedesktop.org/~tstellar/$_pkgname.git
sha512sums=SKIP

prepare() {
  sed -i 's|/usr/bin/python|/usr/bin/python2|g;
         ' $srcdir/$_pkgname/{configure,build/ninja_syntax}.py
}

build() {
  cd $srcdir/$_pkgname
  ./configure.py --prefix=/usr
  make
}

package() {
  cd $srcdir/$_pkgname
  make DESTDIR=$pkgdir install
  install -vDm644 LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENSE
}