commit 00a92855adb6699a64fc5121390296e0687c4d07 Author: Utkan Güngördü Date: Fri Jul 19 19:45:04 2019 -0400 initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4386b33 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ncnn-git + pkgdesc = High-performance neural network inference framework optimized for the mobile platform + pkgver = 20190611.r36.g81a5dfe + pkgrel = 1 + url = https://github.com/Tencent/ncnn + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + makedepends = cmake + depends = vulkan-headers + provides = ncnn + conflicts = ncnn + source = git://github.com/Tencent/ncnn.git + sha256sums = SKIP + +pkgname = ncnn-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1737861 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Utkan Güngördü + +pkgname=ncnn-git +_pkgname=ncnn +pkgver=20190611.r36.g81a5dfe +pkgrel=1 +pkgdesc="High-performance neural network inference framework optimized for the mobile platform" +url="https://github.com/Tencent/ncnn" +license=('BSD') +depends=('vulkan-headers') +makedepends=('git' 'cmake') +conflicts=('ncnn') +provides=('ncnn') +arch=('i686' 'x86_64') +source=("git://github.com/Tencent/ncnn.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/ncnn" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +#prepare() { +#} + +build() { + cd "${srcdir}/ncnn" + mkdir -p build + cd build + cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.gcc.toolchain.cmake -DCMAKE_INSTALL_PREFIX:PATH=${pkgdir}/usr .. + make +} + +package() { + cd "${srcdir}/ncnn/build" + make install + mkdir "${pkgdir}/usr/include/ncnn" + mv ${pkgdir}/usr/include/*.h ${pkgdir}/usr/include/ncnn +}