200bed5c06
```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 ```
22 lines
761 B
Bash
22 lines
761 B
Bash
# Template file for 'hstr'
|
|
pkgname=hstr
|
|
version=2.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake pkg-config"
|
|
makedepends="readline-devel"
|
|
short_desc="Easily view, navigate, search and manage your command history"
|
|
maintainer="Neel Chotai <neel@chot.ai>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/dvorka/hstr"
|
|
changelog="https://raw.githubusercontent.com/dvorka/hstr/master/Changelog"
|
|
distfiles="https://github.com/dvorka/hstr/archive/${version}.tar.gz"
|
|
checksum=c7e7408671757b3f4be9c5a59b4e2d56e7a7b601ace2a94eb6b2b61f20ee890b
|
|
|
|
pre_configure() {
|
|
vsed -i 's|ncursesw/curses.h|curses.h|g' src/include/hstr.h
|
|
vsed -i 's|ncursesw/curses.h|curses.h|g' src/include/hstr_curses.h
|
|
aclocal
|
|
automake --force-missing --add-missing
|
|
autoconf
|
|
}
|