diff options
author | naetherm | 2024-02-13 07:29:58 +0100 |
---|---|---|
committer | naetherm | 2024-02-13 07:29:58 +0100 |
commit | 4e4b51d665e7dadd040ac4ebf114c0868e427f5a (patch) | |
tree | 42a2d476a99eaff9681b94f5807416c6691428e5 | |
download | aur-cppflow.tar.gz |
initial commit for version 2.0.0
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ea264f7131db --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = cppflow + pkgdesc = Run TensorFlow models in C++ without installation and without Bazel + pkgver = 2.0.0 + pkgrel = 1 + url = https://github.com/serizba/cppflow + arch = x86_64 + license = MIT + makedepends = cmake + depends = tensorflow + provides = cppflow + source = https://github.com/serizba/cppflow/archive/refs/tags/v2.0.0.tar.gz + md5sums = 3d29ff93789657bd1e8d49e5ea1dc27c + +pkgname = cppflow diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1fd89f8383e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Markus Näther <markus.naether@gmail.com> +pkgname=cppflow +pkgver=2.0.0 +pkgrel=1 +pkgdesc="Run TensorFlow models in C++ without installation and without Bazel" +arch=('x86_64') +url="https://github.com/serizba/cppflow" +license=('MIT') +provides=('cppflow') +depends=('tensorflow') +makedepends=('cmake') +source=(https://github.com/serizba/cppflow/archive/refs/tags/v${pkgver}.tar.gz) +md5sums=('3d29ff93789657bd1e8d49e5ea1dc27c') + +build() { + _CMAKE_FLAGS+=( -Dtensorflow_INCLUDE_DIRS=/usr/include/tensorflow ) + cmake -G Ninja -S "$srcdir/cppflow-$pkgver" -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + "${_CMAKE_FLAGS[@]}" + + ninja -C "$srcdir/build" ${MAKEFLAGS:--j $(nproc)} +} + +package() { + DESTDIR="$pkgdir" ninja -C "$srcdir/build" install +} |