Some fixes: URLs, whitespace, and getting the submodules URL config right. (Note that hunspell has an extra subdir level, therefore I unrolled the loop.)
hunspell
--- a/PKGBUILD +++ b/PKGBUILD @@ -14,23 +14,23 @@ makedepends=('git' 'qt5-tools') provides=('cutemarked') conflicts=('cutemarked') source=("git+$url.git" - "git+https://github.com/hunspell/hunspell.git" - "git+https://github.com/mity/md4c" - "https://github.com/pbek/qmarkdowntextedit" + "git+https://github.com/hunspell/hunspell.git" + "git+https://github.com/mity/md4c.git" + "git+https://github.com/pbek/qmarkdowntextedit.git" ) md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP') pkgver() { cd $_gitname - printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') $(git rev-list --count HEAD) + printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') $(git rev-list --count HEAD) } prepare() { cd $_gitname git submodule init - for __submodule in hunspell md4c qmarkdowntextedit - do git config submodule.${__submodule}.url "$srcdir"/${_gitname}/3rdparty/${__submodule} - done + git config submodule.3rdparty/hunspell/hunspell.url "${srcdir}/hunspell" + git config submodule.3rdparty/md4c.url "${srcdir}/md4c" + git config submodule.3rdparty/qmarkdowntextedit.url "${srcdir}/qmarkdowntextedit" git submodule update }
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Some fixes: URLs, whitespace, and getting the submodules URL config right. (Note that
hunspellhas an extra subdir level, therefore I unrolled the loop.)