65749575ab
```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
591 B
Bash
20 lines
591 B
Bash
# Template file for 'netpgpverify'
|
|
pkgname=netpgpverify
|
|
version=20160707
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--prefix=/usr --mandir=/usr/share/man"
|
|
short_desc="PGP/SSH standalone verification utility"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="2-clause-BSD"
|
|
homepage="http://www.netpgp.com"
|
|
distfiles="http://www.netpgp.com/src/${pkgname}-${version}.tar.gz"
|
|
checksum=1eedf30b35cacbf8f39b80fbc4ea6129ba8c7815b0ad7f3d1ae05e521f684b00
|
|
|
|
post_extract() {
|
|
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile.in
|
|
}
|
|
post_install() {
|
|
sed '/\*\//q' main.c >LICENSE
|
|
vlicense LICENSE
|
|
}
|