void-packages/srcpkgs/partclone/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par 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

22 lines
829 B
Bash

# Template file for 'partclone'
pkgname=partclone
version=0.3.17
revision=2
build_style=gnu-configure
configure_args="--disable-rpath --enable-ncursesw --enable-f2fs
--enable-extfs --enable-hfsp --enable-fat --enable-exfat
--enable-ntfs --enable-btrfs --enable-minix --enable-nilfs2"
hostmakedepends="pkg-config automake autoconf libtool"
makedepends="e2fsprogs-devel libuuid-devel ncurses-devel ntfs-3g-devel
nilfs-utils-devel openssl-devel"
short_desc="File system clone and restore utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.partclone.org/"
distfiles="https://github.com/Thomas-Tsai/${pkgname}/archive/${version}.tar.gz"
checksum=ef1391db3801e4b3ef82fc9417f1d7f0542b7229b3394120072b2dfeae0bbbb0
CFLAGS="-DBTRFS_DISABLE_BACKTRACE"
pre_configure() {
./autogen
}