c6ce65d3d0
```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 ```
20 lines
651 B
Bash
20 lines
651 B
Bash
# Template file for 'buku'
|
|
pkgname=buku
|
|
version=4.6
|
|
revision=1
|
|
depends="python3-urllib3 python3-BeautifulSoup4 python3-cryptography
|
|
python3-html5lib"
|
|
short_desc="Cmdline bookmark management utility"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/jarun/Buku"
|
|
distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
|
|
checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
|
|
|
|
do_install() {
|
|
vbin buku
|
|
vman buku.1
|
|
vcompletion auto-completion/bash/buku-completion.bash bash
|
|
vcompletion auto-completion/zsh/_buku zsh
|
|
vcompletion auto-completion/fish/buku.fish fish
|
|
}
|