```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 ```
18 lines
593 B
Bash
18 lines
593 B
Bash
# Template file for 'hexer'
|
|
pkgname=hexer
|
|
version=1.0.6
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="CC_FOR_BUILD=cc"
|
|
make_install_args="MANDIR=/usr/share/man/man1"
|
|
makedepends="ncurses-devel"
|
|
short_desc="Multi-buffered hex editor for binary files, with a vi like interface"
|
|
maintainer="Aloz1 <kno0001@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://devel.ringlet.net/editors/hexer/"
|
|
distfiles="https://devel.ringlet.net/files/editors/hexer/hexer-${version}.tar.xz"
|
|
checksum=e6b84ace5283825943f88ce7ec4ae836ec15ba41978b3a858d6d478cfe09ff94
|
|
|
|
post_install() {
|
|
vlicense COPYRIGHT
|
|
}
|