From 1a992806faf5e3678af9eb5c9dd30939203451cf Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Mon, 17 Jul 2023 13:53:20 +0200 Subject: [PATCH] fix: update PKGBUILD to use libvieter --- PKGBUILD | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 05a3e735..e5cde95a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,13 +11,23 @@ makedepends=('git' 'vieter-vlang') arch=('x86_64' 'aarch64') url='https://git.rustybever.be/vieter-v/vieter' license=('AGPL3') -source=("$pkgname::git+https://git.rustybever.be/vieter-v/vieter#tag=${pkgver//_/-}") -md5sums=('SKIP') +source=( + "$pkgname::git+https://git.rustybever.be/vieter-v/vieter#tag=${pkgver//_/-}" + "libvieter::git+https://git.rustybever.be/vieter-v/libvieter" +) +md5sums=('SKIP' 'SKIP') prepare() { - export VMODULES="$srcdir/.vmodules" + cd "${pkgname}" - cd "$pkgname/src" && v install + # Add the libvieter submodule + git submodule init + git config submodules.src/libvieter.url "${srcdir}/libvieter" + git -c protocol.file.allow=always submodule update + + export VMODULES="${srcdir}/.vmodules" + + cd src && v install } build() {