summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29be75c005e92ff4f3a143f593d9da7ccbb141c7 (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
pkgname=llvm-cbe-git
pkgver=b110169
pkgrel=1
pkgdesc="resurrected LLVM C Backend, with improvements"
arch=(x86_64)
url="https://github.com/JuliaComputing/llvm-cbe"
license=('LLVM Release License')
depends=('llvm')
makedepends=('cmake')

source=(
  "git+https://github.com/woachk/llvm-cbe.git#branch=fix-llvm9"
)
sha256sums=(
  'SKIP'
)

pkgver() {
  cd llvm-cbe
  git rev-parse --short HEAD
}

build() {
  cd llvm-cbe
  mkdir -p build
  cd build
  cmake .. -DUSE_SYSTEM_LLVM=ON -DCMAKE_BUILD_TYPE=Release
  make -j
}

package() {
  install -Dm644 "$srcdir"/llvm-cbe/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  install -Dm755 "$srcdir"/llvm-cbe/build/tools/llvm-cbe/llvm-cbe "$pkgdir"/usr/bin/llvm-cbe
}