summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Bigelow2020-05-05 09:11:48 -0400
committerMitch Bigelow2020-05-05 09:11:48 -0400
commit30848d8744781093b873b2ebbfe53136c7e50708 (patch)
tree8bdcbde8e93a9dc8a368f50600b8a03b016dabd5
downloadaur-30848d8744781093b873b2ebbfe53136c7e50708.tar.gz
copy ncnn-git to ncnn
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..361ca4eeb25
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ncnn
+ pkgdesc = High-performance neural network inference framework optimized for the mobile platform
+ pkgver = 20200413
+ pkgrel = 1
+ url = https://github.com/Tencent/ncnn
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ makedepends = glslang
+ makedepends = vulkan-headers
+ makedepends = vulkan-icd-loader
+ conflicts = ncnn-git
+ source = https://github.com/Tencent/ncnn/archive/20200413.tar.gz
+ sha256sums = 1ed523bda96cfdf5b5619c6480987b0811e3c4ef62b5d3fe2e8bdca9b8b2fc90
+
+pkgname = ncnn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0881b7b05de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Mitch Bigelow <ipha00@gmail.com>
+
+pkgname=ncnn
+pkgver=20200413
+pkgrel=1
+pkgdesc="High-performance neural network inference framework optimized for the mobile platform"
+url="https://github.com/Tencent/ncnn"
+license=('BSD')
+depends=()
+makedepends=('git' 'cmake' 'glslang' 'vulkan-headers' 'vulkan-icd-loader')
+conflicts=('ncnn-git')
+arch=('i686' 'x86_64')
+source=("https://github.com/Tencent/ncnn/archive/${pkgver}.tar.gz")
+sha256sums=('1ed523bda96cfdf5b5619c6480987b0811e3c4ef62b5d3fe2e8bdca9b8b2fc90')
+
+build() {
+ cd "${srcdir}/ncnn-${pkgver}"
+ mkdir -p build
+ cd build
+ cmake \
+ -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.gcc.toolchain.cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DNCNN_BUILD_EXAMPLES=OFF \
+ -DNCNN_BUILD_TOOLS=OFF \
+ -DNCNN_VULKAN=ON \
+ ..
+ make
+}
+
+package() {
+ cd "${srcdir}/ncnn-${pkgver}/build"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 "${srcdir}/ncnn-${pkgver}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}