void-packages/srcpkgs/s3cmd/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

18 lines
581 B
Bash

# Template file for 's3cmd'
pkgname=s3cmd
version=2.1.0
revision=3
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-dateutil"
short_desc="Command line tool for Amazon S3"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
changelog="https://github.com/s3tools/s3cmd/raw/master/NEWS"
homepage="http://s3tools.org/s3cmd"
distfiles="https://github.com/s3tools/${pkgname}/archive/v${version}.tar.gz"
checksum=2293f775fde77201bf8e489f20516fd594168c77897168f129e5c1a2b33b7e37
pre_install() {
export S3CMD_INSTPATH_DOC="share/doc"
}