summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2020-09-19 23:01:40 +0200
committerbartus2020-09-19 23:01:40 +0200
commit6a7fe0d50ea49577ee331746ae0e60532c7e6c6b (patch)
tree31b0dfb7c3d061fc5b95d61d3e9293ff59c537d8
parent6a42a2d5f14b9bff3e551067299a08b9586929fa (diff)
downloadaur-6a7fe0d50ea49577ee331746ae0e60532c7e6c6b.tar.gz
Add git-lfs support.
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD19
2 files changed, 19 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a3d0b3d2e72..c7b5c86bfa0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,13 +6,14 @@ pkgbase = oidn
arch = x86_64
license = Apache
makedepends = git
+ makedepends = git-lfs
makedepends = cmake
makedepends = ispc>=1.14
depends = intel-tbb
depends = python
source = oidn::git+https://github.com/OpenImageDenoise/oidn.git#tag=v1.2.3
source = git+https://github.com/OpenImageDenoise/mkl-dnn.git
- source = git+https://github.com/OpenImageDenoise/oidn-weights.git
+ source = git-lfs+https://github.com/OpenImageDenoise/oidn-weights.git
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 72a2d68d9c0..a11640acbac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,19 @@
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
+
+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
pkgver=1.2.3
_fragment="#tag=v${pkgver}"
@@ -8,10 +23,10 @@ arch=('x86_64')
url="http://www.openimagedenoise.org/"
license=('Apache')
depends=(intel-tbb python)
-makedepends=(git cmake 'ispc>=1.14')
+makedepends=(git git-lfs cmake 'ispc>=1.14')
source=("${pkgname}::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'