diff options
author | nekgem | 2020-05-06 20:58:10 +0300 |
---|---|---|
committer | nekgem | 2020-05-06 20:58:10 +0300 |
commit | 4d46f400cfb985e841ba81a67fae14a8059ce3cd (patch) | |
tree | cf278c7d9c325c755be47370d173f77e849024ae | |
parent | 04313083eac52711cf8a55379b2ac80044f3693c (diff) | |
download | aur-4d46f400cfb985e841ba81a67fae14a8059ce3cd.tar.gz |
don't download submodules during prepare()
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 38 insertions, 2 deletions
@@ -13,12 +13,26 @@ pkgbase = lokinet depends = libsodium depends = curl source = git+https://github.com/loki-project/loki-network.git#tag=v0.7.1 + source = git+https://github.com/nlohmann/json.git + source = git+https://github.com/google/googletest.git + source = git+https://github.com/jarro2783/cxxopts.git + source = git+https://github.com/gulrak/filesystem.git + source = git+https://github.com/catchorg/Catch2 + source = git+https://github.com/martinmoene/optional-lite.git + source = git+https://github.com/HowardHinnant/date.git source = lokinet.service source = lokinet-bootstrap.service source = lokinet-default-config.service source = lokinet.sysusers source = lokinet.tmpfiles sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP sha256sums = ce7f40f91c1de020466f82fb504e261e66774ef5f97a9d914dbe61236a1baf01 sha256sums = 21c9bc83f8466ab17fa927561d7f24f930f97c996a8aa0fbbbbb2b65cb97b342 sha256sums = 6ef779170b72856bbb8df40c34a808acffddd156684bdb66a55e71d50cf95841 @@ -11,12 +11,26 @@ makedepends=('git' 'cmake') install='lokinet.install' _gitname=loki-network source=("git+https://github.com/loki-project/$_gitname.git#tag=v$pkgver" # github archives don't embed submodules + 'git+https://github.com/nlohmann/json.git' + 'git+https://github.com/google/googletest.git' + 'git+https://github.com/jarro2783/cxxopts.git' + 'git+https://github.com/gulrak/filesystem.git' + 'git+https://github.com/catchorg/Catch2' + 'git+https://github.com/martinmoene/optional-lite.git' + 'git+https://github.com/HowardHinnant/date.git' 'lokinet.service' 'lokinet-bootstrap.service' 'lokinet-default-config.service' 'lokinet.sysusers' 'lokinet.tmpfiles') sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' 'ce7f40f91c1de020466f82fb504e261e66774ef5f97a9d914dbe61236a1baf01' '21c9bc83f8466ab17fa927561d7f24f930f97c996a8aa0fbbbbb2b65cb97b342' '6ef779170b72856bbb8df40c34a808acffddd156684bdb66a55e71d50cf95841' @@ -24,8 +38,16 @@ sha256sums=('SKIP' '53837c9cfc90b93d55558045108a5d1d7a8b8a75a266af264d7f9101363d043f') prepare() { - # XXX maybe should include submodules as part of sources? - git -C "$_gitname" submodule update --init --recursive + cd "$_gitname" + git submodule init + git config submodule.external/nlohmann.url "$srcdir"/json + git config submodule.external/googletest.url "$srcdir"/googletest + git config submodule.external/cxxopts.url "$srcdir"/cxxopts + git config submodule.external/ghc-filesystem.url "$srcdir"/filesystem + git config submodule.test/Catch2.url "$srcdir"/Catch2 + git config submodule.external/optional-lite.url "$srcdir"/optional-lite + git config submodule.external/date.url "$srcdir"/date + git submodule update } build() { |