void-packages/srcpkgs/attic/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```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

36 lines
994 B
Bash

# Template file for 'attic'
pkgname=attic
version=0.16
revision=20
wrksrc="Attic-$version"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython python3-Sphinx"
makedepends="python3-devel openssl-devel acl-devel"
depends="python3-msgpack python3-llfuse"
short_desc="Deduplicating backup program for efficient and secure backups"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://attic-backup.org/"
distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
fi
local _file
for _file in attic/*.pyx; do
rm ${_file/pyx/c}
done
python3 setup.py sdist
}
post_build() {
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build
}
post_install() {
vlicense LICENSE
vman docs/_build/man/attic-deduplicatingarchiver.1 attic.1
}