diff options
author | HurricanePootis | 2022-07-21 12:11:56 -0500 |
---|---|---|
committer | HurricanePootis | 2022-07-21 12:11:56 -0500 |
commit | 2f47001970b7d0583952ddf2bee47dbad63c0f4c (patch) | |
tree | 83a2fd5d3dea9edfeed6d3f8fbb1077a7692f673 | |
parent | 74c72f8f75b6d1408708dbe09252a56151442532 (diff) | |
download | aur-2f47001970b7d0583952ddf2bee47dbad63c0f4c.tar.gz |
Update PKGBUILD to be more inline with community/ncnn
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 14 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = ncnn-git pkgdesc = High-performance neural network inference framework optimized for the mobile platform - pkgver = 20220216.r57.g3d169b323 + pkgver = 20220721.r2.g13a953398 pkgrel = 1 url = https://github.com/Tencent/ncnn arch = i686 @@ -12,6 +12,7 @@ pkgbase = ncnn-git makedepends = protobuf makedepends = vulkan-headers depends = glslang + optdepends = protobuf: for onnx2ncnn provides = ncnn conflicts = ncnn source = git+https://github.com/Tencent/ncnn.git @@ -4,13 +4,14 @@ pkgname=ncnn-git _pkgname=ncnn -pkgver=20220216.r57.g3d169b323 +pkgver=20220721.r2.g13a953398 pkgrel=1 pkgdesc="High-performance neural network inference framework optimized for the mobile platform" url="https://github.com/Tencent/ncnn" license=('BSD') depends=('glslang') makedepends=('git' 'cmake' 'vulkan-icd-loader' 'protobuf' 'vulkan-headers') +optdepends=('protobuf: for onnx2ncnn') conflicts=('ncnn') provides=('ncnn') arch=('i686' 'x86_64') @@ -39,14 +40,22 @@ prepare() { build() { cd "${srcdir}/ncnn" - mkdir -p build - cd build + if [[ ! -d build ]] + then + mkdir build && cd build + else + cd build + fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE='None' \ -DNCNN_BUILD_EXAMPLES=OFF \ -DNCNN_VULKAN=ON \ -DNCNN_SYSTEM_GLSLANG=ON \ + -DNCNN_SHARED_LIB=ON \ + -DNCNN_ENABLE_LTO=ON \ -DGLSLANG_TARGET_DIR=/usr/lib/cmake \ + -Wno-dev \ .. make } |