upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / onednn / trunk / PKGBUILD
blobbab9aff5293310e729ee5fa9c318a55d46437c1e
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Baris Demirdelen <barisdemirdelen at gmail dot com>
3 # Contributor: Andrew Anderson <aanderso@tcd.ie>
4 # Contributor: Jonathon Fernyhough <jonathon_at manjaro_dotorg>
5 pkgname=onednn
6 pkgver=3.1
7 pkgrel=1
8 pkgdesc="oneAPI Deep Neural Network Library (oneDNN)"
9 arch=(x86_64)
10 replaces=('intel-dnnl' 'mkl-dnn')
11 provides=('intel-dnnl' 'mkl-dnn')
12 url=https://github.com/oneapi-src/oneDNN
13 license=('APACHE')
14 depends=('gcc-libs')
15 makedepends=('cmake' 'ninja')
16 source=("$pkgname-$pkgver.tar.gz::https://github.com/oneapi-src/oneDNN/archive/v${pkgver}.tar.gz")
17 sha256sums=('28e31f2d576e1a7e3a796f5c33c1d733c256078cff1c48b9e2a692d5975e1401')
19 build() {
20   cd "oneDNN-$pkgver"
21   cmake \
22       -Bbuild \
23       -GNinja \
24       -DCMAKE_INSTALL_PREFIX="/usr"
25   ninja -C build
28 check() {
29   cd "oneDNN-$pkgver/build"
30   ctest
33 package() {
34   cd "oneDNN-$pkgver"
35   DESTDIR="$pkgdir" ninja -C build install
37   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE