[arch-commits] Commit in (onednn onednn/trunk onednn/trunk/PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Apr 13 23:19:11 UTC 2020


    Date: Monday, April 13, 2020 @ 23:19:11
  Author: svenstaro
Revision: 613840

intel-dnnl has been renamed to onednn

Added:
  onednn/
  onednn/trunk/
  onednn/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: onednn/trunk/PKGBUILD
===================================================================
--- onednn/trunk/PKGBUILD	                        (rev 0)
+++ onednn/trunk/PKGBUILD	2020-04-13 23:19:11 UTC (rev 613840)
@@ -0,0 +1,40 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Baris Demirdelen <barisdemirdelen at gmail dot com>
+# Contributor: Andrew Anderson <aanderso at tcd.ie>
+# Contributor: Jonathon Fernyhough <jonathon_at manjaro_dotorg>
+pkgname=onednn
+pkgver=1.3
+pkgrel=1
+pkgdesc="oneAPI Deep Neural Network Library (oneDNN)"
+arch=(x86_64)
+replaces=('intel-dnnl' 'mkl-dnn')
+provides=('intel-dnnl' 'mkl-dnn')
+url=https://github.com/oneapi-src/oneDNN
+license=('APACHE')
+depends=('gcc-libs')
+makedepends=('cmake' 'doxygen')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/oneapi-src/oneDNN/archive/v${pkgver}.tar.gz")
+sha256sums=('a71ec1f27c30b8a176605e8a78444f1f12301a3c313b70ff93290926c140509c')
+
+prepare() {
+  mkdir -p "$_pkgname-$pkgver"/build
+}
+
+build() {
+  cd "$_pkgname-$pkgver/build"
+  cmake .. -DCMAKE_INSTALL_PREFIX="/usr"
+  make
+  make doc
+}
+
+check() {
+  cd "$_pkgname-$pkgver/build"
+  ctest
+}
+
+package() {
+  cd "$_pkgname-$pkgver/build"
+  DESTDIR="$pkgdir" make install
+
+  install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


More information about the arch-commits mailing list