summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71fba9d637ea5b4303f272b46b5af61804094a5c (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Andrew Anderson <aanderso@tcd.ie>

pkgname=armcl-opencl-debug
pkgver=19.02
pkgrel=1

epoch=
pkgdesc="ARM Computer Vision and Machine Learning Library (x86_64 OpenCL Backend, debug build)"
arch=( 'x86_64' )
url="https://github.com/ARM-software/ComputeLibrary"
license=('MIT')
groups=()
depends=()
makedepends=( 'scons>=2.3' 'git' 'doxygen>=1.8.5' )
checkdepends=()
optdepends=()
provides=()
conflicts=( 'armcl-opencl' )
replaces=( 'armcl-opencl' )
backup=()
options=( !strip )
install=
changelog=
source=("git+https://github.com/ARM-software/ComputeLibrary.git")
sha1sums=('SKIP')

build() {
  cd "${srcdir}/ComputeLibrary"
  git checkout "v$pkgver"
  scons -j`cat /proc/cpuinfo | grep -i "processor" | wc -l` \
  os=linux arch=x86_64 build=native \
  Werror=0 debug=1 asserts=1 \
  neon=0 \
  opencl=1 gles_compute=0 embed_kernels=1 \
  examples=0 \
  set_soname=0 \
  openmp=0 cppthreads=1 \
  pmu=0 \
  mali=0 \
  validation_tests=0 \
  benchmark_tests=0 \
  extra_cxx_flags="-fPIC"
}

#check() {}

package() {
  cd "${srcdir}/ComputeLibrary"
  mkdir -p ${pkgdir}/usr/lib/
  cp -r build/*.a ${pkgdir}/usr/lib/
  cp -r build/*.so ${pkgdir}/usr/lib/

  # The Compute Library OpenCL runtime
  mkdir -p ${pkgdir}/usr/lib/arm_compute/
  cp -r build/src/runtime/CL/* ${pkgdir}/usr/lib/arm_compute/

  mkdir -p ${pkgdir}/usr/include/arm_compute/
  cp -r arm_compute/* ${pkgdir}/usr/include/arm_compute/
  cp -r support ${pkgdir}/usr/include/arm_compute/
  cp -r include/* ${pkgdir}/usr/include/arm_compute/
}