4b97cd2fb4
```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
680 B
Bash
20 lines
680 B
Bash
# Template file for 'ssoma'
|
|
pkgname=ssoma
|
|
version=0.2.0
|
|
revision=4
|
|
make_install_target="install install-man prefix=/usr"
|
|
build_style=perl-module
|
|
depends="perl perl-Email-LocalDelivery perl-Email-MIME perl-File-Path-Expand
|
|
perl-IPC-Run perl-Net-IMAP-Simple"
|
|
hostmakedepends="$depends git perl-CGI perl-HTML-Parser"
|
|
makedepends="perl"
|
|
short_desc="Some sort of mail archiver"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="https://ssoma.public-inbox.org/"
|
|
distfiles="https://ssoma.public-inbox.org/files/${pkgname}-${version}.tar.gz"
|
|
checksum=7455bafb344aaa8eeac78ae5efcca2384d11baface1194c35bafd30353168faf
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|