diff options
author | bartus | 2020-09-19 23:12:57 +0200 |
---|---|---|
committer | bartus | 2020-09-19 23:12:57 +0200 |
commit | 86232657f5e4c5127a9979aefe12d23a52061640 (patch) | |
tree | 07e6eec548e6c5ca3b7fa7da41187cc7e5027b6b /PKGBUILD | |
parent | 7849c4c49cd37b430d412b50ca1fa81ba41fb36e (diff) | |
download | aur-86232657f5e4c5127a9979aefe12d23a52061640.tar.gz |
Add git-lfs support, refactor.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -2,8 +2,22 @@ # Maintainer : bartus <arch-user-repoᘓbartus.33mail.com> # shellcheck disable=SC2034,SC2154 # to allow unused/uninitialized variables. +function download_git-lfs { + local url dir + url=${1#git-lfs+} + download_git "$url" + dir="$SRCDEST/$(get_filename "$url")" + git -C "$dir" lfs install + git -C "$dir" lfs fetch +} + +function extract_git-lfs { + url=${1/git-lfs/https} + extract_git "$url" +} + pkgname=oidn-git -pkgver=1.2.0.r3.gb6a0cf7 +pkgver=1.2.3.r0.ga9e9160 #_fragment="#tag=v${pkgver}" pkgrel=1 pkgdesc="Intel(R) Open Image Denoise library" @@ -11,16 +25,16 @@ arch=('x86_64') url="http://www.openimagedenoise.org/" license=('Apache') depends=(intel-tbb python) -provides=(openimagedenoise) +provides=(openimagedenoise=${pkgver%.r*}) conflicts=(openimagedenoise) -makedepends=(cmake git ispc ninja) +makedepends=(git git-lfs cmake 'ispc>=1.14' ninja) source=("${pkgname%-git}::git+https://github.com/OpenImageDenoise/oidn.git${_fragment}" "git+https://github.com/OpenImageDenoise/mkl-dnn.git" - "git+https://github.com/OpenImageDenoise/oidn-weights.git" + "git-lfs+https://github.com/OpenImageDenoise/oidn-weights.git" ) -md5sums=('SKIP' - 'SKIP' - 'SKIP') +sha256sums=('SKIP' + 'SKIP' + 'SKIP') prepare() { git -C "${srcdir}"/${pkgname%-git} config submodule.mkl-dnn.url "${srcdir}"/mkl-dnn |