diff options
author | EndlessEden | 2021-02-06 20:18:27 +1100 |
---|---|---|
committer | EndlessEden | 2021-02-06 20:18:27 +1100 |
commit | 1469b13d11130a9d12f6dc55ec5e540d58a2c70a (patch) | |
tree | c622d7f6b8f9c3f0edc18985369b36d9edabd986 | |
download | aur-1469b13d11130a9d12f6dc55ec5e540d58a2c70a.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 68 |
2 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..44b3ad291e9f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = armcl-opencl-mali + pkgdesc = ARM Computer Vision and Machine Learning Library (x86_64 OpenCL Backend) + pkgver = 20.02.1 + pkgrel = 1 + url = https://github.com/ARM-software/ComputeLibrary + arch = aarch64 + license = MIT + makedepends = scons>=2.3 + makedepends = git + makedepends = doxygen>=1.8.5 + options = !strip + options = !emptydirs + options = staticlibs + source = git+https://github.com/ARM-software/ComputeLibrary.git + sha1sums = SKIP + +pkgname = armcl-opencl-mali + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0be7c6e3881a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +#$ +#$ Cloned from armcl-opencl +#$ +# +# Maintainer: EndlessEden <eden@rose.place> +# +# Contributor: Andrew Anderson <aanderso@tcd.ie> + +pkgname=armcl-opencl-mali +pkgver=20.02.1 +pkgrel=1 + +epoch= +pkgdesc="ARM Computer Vision and Machine Learning Library (x86_64 OpenCL Backend)" +arch=('aarch64') +url="https://github.com/ARM-software/ComputeLibrary" +license=('MIT') +groups=() +depends=() +makedepends=( 'scons>=2.3' 'git' 'doxygen>=1.8.5' ) +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=( '!strip' '!emptydirs' 'staticlibs' ) +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=$CARCH build=native \ + Werror=0 debug=0 asserts=0 \ + neon=1 \ + opencl=1 gles_compute=1 embed_kernels=1 \ + examples=0 \ + set_soname=0 \ + openmp=1 cppthreads=1 \ + pmu=1 \ + mali=1 \ + 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/ + cp -r utils ${pkgdir}/usr/include/arm_compute/ +} |