[arch-commits] Commit in helix/trunk (PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Sun Aug 8 11:29:46 UTC 2021
Date: Sunday, August 8, 2021 @ 11:29:45
Author: orhun
Revision: 994918
upgpkg: helix 0.3.0-4: fix git submodule initialization
Modified:
helix/trunk/PKGBUILD
----------+
PKGBUILD | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 83 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-08-08 11:03:03 UTC (rev 994917)
+++ PKGBUILD 2021-08-08 11:29:45 UTC (rev 994918)
@@ -3,7 +3,8 @@
pkgname=helix
pkgver=0.3.0
-pkgrel=3
+_gitcommit=44566ea812eed023c89ab49b59f62e76ef2bd6c7
+pkgrel=4
pkgdesc="A post-modern modal text editor"
arch=('x86_64')
url="https://helix-editor.com"
@@ -11,25 +12,101 @@
depends=('bash')
makedepends=('rust' 'git')
install="$pkgname.install"
-source=("git+https://github.com/helix-editor/helix.git#tag=v$pkgver"
- "$pkgname.sh")
+source=("${pkgname}::git+https://github.com/helix-editor/helix.git#commit=${_gitcommit}"
+ "${pkgname}-tree-sitter-julia::git+https://github.com/tree-sitter/tree-sitter-julia"
+ "${pkgname}-tree-sitter-cpp::git+https://github.com/tree-sitter/tree-sitter-cpp"
+ "${pkgname}-tree-sitter-python::git+https://github.com/tree-sitter/tree-sitter-python"
+ "${pkgname}-tree-sitter-javascript::git+https://github.com/tree-sitter/tree-sitter-javascript"
+ "${pkgname}-tree-sitter-html::git+https://github.com/tree-sitter/tree-sitter-html"
+ "${pkgname}-tree-sitter-php::git+https://github.com/tree-sitter/tree-sitter-php"
+ "${pkgname}-tree-sitter-bash::git+https://github.com/tree-sitter/tree-sitter-bash"
+ "${pkgname}-tree-sitter-scala::git+https://github.com/tree-sitter/tree-sitter-scala"
+ "${pkgname}-tree-sitter-typescript::git+https://github.com/tree-sitter/tree-sitter-typescript"
+ "${pkgname}-tree-sitter-rust::git+https://github.com/tree-sitter/tree-sitter-rust"
+ "${pkgname}-tree-sitter-json::git+https://github.com/tree-sitter/tree-sitter-json"
+ "${pkgname}-tree-sitter-elixir::git+https://github.com/IceDragon200/tree-sitter-elixir"
+ "${pkgname}-tree-sitter-nix::git+https://github.com/cstrahan/tree-sitter-nix"
+ "${pkgname}-tree-sitter-c-sharp::git+https://github.com/tree-sitter/tree-sitter-c-sharp"
+ "${pkgname}-tree-sitter-ruby::git+https://github.com/tree-sitter/tree-sitter-ruby"
+ "${pkgname}-tree-sitter-java::git+https://github.com/tree-sitter/tree-sitter-java"
+ "${pkgname}-tree-sitter-agda::git+https://github.com/tree-sitter/tree-sitter-agda"
+ "${pkgname}-tree-sitter-css::git+https://github.com/tree-sitter/tree-sitter-css"
+ "${pkgname}-tree-sitter-go::git+https://github.com/tree-sitter/tree-sitter-go"
+ "${pkgname}-tree-sitter-haskell::git+https://github.com/tree-sitter/tree-sitter-haskell"
+ "${pkgname}-tree-sitter-latex::git+https://github.com/latex-lsp/tree-sitter-latex"
+ "${pkgname}-tree-sitter-toml::git+https://github.com/ikatyang/tree-sitter-toml"
+ "${pkgname}-tree-sitter-swift::git+https://github.com/tree-sitter/tree-sitter-swift"
+ "${pkgname}-tree-sitter-c::git+https://github.com/tree-sitter/tree-sitter-c"
+ "$pkgname.sh"
+)
sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
'f782c93bc0f2c7b27ec62fb2ba36e11b3354c3953405f8d2017b039c9eac500a')
prepare() {
cd "$pkgname"
git submodule init
- git submodule update --recursive
+
+ git config submodule."helix-syntax/languages/tree-sitter-cpp".url "${srcdir}/${pkgname}"-tree-sitter-cpp
+ git config submodule."helix-syntax/languages/tree-sitter-javascript".url "${srcdir}/${pkgname}"-tree-sitter-javascript
+ git config submodule."helix-syntax/languages/tree-sitter-julia".url "${srcdir}/${pkgname}"-tree-sitter-julia
+ git config submodule."helix-syntax/languages/tree-sitter-python".url "${srcdir}/${pkgname}"-tree-sitter-python
+ git config submodule."helix-syntax/languages/tree-sitter-typescript".url "${srcdir}/${pkgname}"-tree-sitter-typescript
+ git config submodule."helix-syntax/languages/tree-sitter-agda".url "${srcdir}/${pkgname}"-tree-sitter-agda
+ git config submodule."helix-syntax/languages/tree-sitter-go".url "${srcdir}/${pkgname}"-tree-sitter-go
+ git config submodule."helix-syntax/languages/tree-sitter-ruby".url "${srcdir}/${pkgname}"-tree-sitter-ruby
+ git config submodule."helix-syntax/languages/tree-sitter-java".url "${srcdir}/${pkgname}"-tree-sitter-java
+ git config submodule."helix-syntax/languages/tree-sitter-php".url "${srcdir}/${pkgname}"-tree-sitter-php
+ git config submodule."helix-syntax/languages/tree-sitter-html".url "${srcdir}/${pkgname}"-tree-sitter-html
+ git config submodule."helix-syntax/languages/tree-sitter-scala".url "${srcdir}/${pkgname}"-tree-sitter-scala
+ git config submodule."helix-syntax/languages/tree-sitter-bash".url "${srcdir}/${pkgname}"-tree-sitter-bash
+ git config submodule."helix-syntax/languages/tree-sitter-rust".url "${srcdir}/${pkgname}"-tree-sitter-rust
+ git config submodule."helix-syntax/languages/tree-sitter-json".url "${srcdir}/${pkgname}"-tree-sitter-json
+ git config submodule."helix-syntax/languages/tree-sitter-css".url "${srcdir}/${pkgname}"-tree-sitter-css
+ git config submodule."helix-syntax/languages/tree-sitter-c-sharp".url "${srcdir}/${pkgname}"-tree-sitter-c-sharp
+ git config submodule."helix-syntax/languages/tree-sitter-c".url "${srcdir}/${pkgname}"-tree-sitter-c
+ git config submodule."helix-syntax/languages/tree-sitter-haskell".url "${srcdir}/${pkgname}"-tree-sitter-haskell
+ git config submodule."helix-syntax/languages/tree-sitter-swift".url "${srcdir}/${pkgname}"-tree-sitter-swift
+ git config submodule."helix-syntax/languages/tree-sitter-toml".url "${srcdir}/${pkgname}"-tree-sitter-toml
+ git config submodule."helix-syntax/languages/tree-sitter-elixir".url "${srcdir}/${pkgname}"-tree-sitter-elixir
+ git config submodule."helix-syntax/languages/tree-sitter-nix".url "${srcdir}/${pkgname}"-tree-sitter-nix
+ git config submodule."helix-syntax/languages/tree-sitter-latex".url "${srcdir}/${pkgname}"-tree-sitter-latex
+
+ git submodule update --init --recursive
+ cargo fetch --locked
}
build() {
cd "$pkgname"
- cargo build --release --locked
+ cargo build --frozen --release
}
check() {
cd "$pkgname"
- cargo test --release --locked --all-features
+ cargo test --frozen --all-features
}
package() {
More information about the arch-commits
mailing list