```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 ```
24 lines
654 B
Bash
24 lines
654 B
Bash
# Template file for 'bup'
|
|
pkgname=bup
|
|
version=0.32
|
|
revision=1
|
|
build_style=configure
|
|
hostmakedepends="python3 perl git"
|
|
makedepends="python3-devel"
|
|
checkdepends="python3-pytest tar rsync"
|
|
short_desc="Backup system based on the git packfile format"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.0-only"
|
|
homepage="https://github.com/bup/bup"
|
|
distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
|
|
checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
|
|
python_version=3
|
|
nocross=yes
|
|
|
|
pre_configure() {
|
|
sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
|
|
}
|
|
|
|
do_check() {
|
|
./pytest -x --ignore-glob='test/ext/test-ls*'
|
|
}
|