```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 ```
19 lines
552 B
Bash
19 lines
552 B
Bash
# Template file for 'nwipe'
|
|
pkgname=nwipe
|
|
version=0.30
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake pkg-config"
|
|
makedepends="libuuid-devel libparted-devel ncurses-devel"
|
|
short_desc="Utility to securely erase disks"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/martijnvanbrummelen/nwipe"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=85faaa9c65557a6be187f0176c5b778e8cd080e1cd9b8a7168a8a9b8e410d46d
|
|
|
|
CFLAGS="-D_FILE_OFFSET_BITS=64"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|