4f75cf25fd
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
590 B
Bash
17 lines
590 B
Bash
# Template file for 'texlab'
|
|
pkgname=texlab
|
|
version=2.2.2
|
|
revision=1
|
|
build_style=cargo
|
|
short_desc="Implementation of the Language Server Protocol for LaTeX"
|
|
maintainer="Gabriel Sanches <gabriel@gsr.dev>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://texlab.netlify.app/"
|
|
distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz
|
|
https://github.com/salsa-rs/salsa/archive/v0.13.2.tar.gz"
|
|
checksum="04978b118b455607b5debd0a886f0728ca6c498289d2a0c60d8f83b316dc5ebc
|
|
2e33e20d22692f6bcd4d638392b9c2cfb716bcd28998e809db0dd88be4f70a31"
|
|
|
|
post_extract() {
|
|
mv ../salsa-* salsa
|
|
}
|