* 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 ```
19 lines
643 B
Bash
19 lines
643 B
Bash
# Template file for 'pmount'
|
|
pkgname=pmount
|
|
version=0.9.23
|
|
revision=7
|
|
build_style=gnu-configure
|
|
hostmakedepends="intltool"
|
|
makedepends="libblkid-devel"
|
|
short_desc="Permits normal users to mount removable devices"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-only"
|
|
homepage="http://pmount.alioth.debian.org/"
|
|
distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.bz2"
|
|
checksum=db38fc290b710e8e9e9d442da2fb627d41e13b3ee80326c15cc2595ba00ea036
|
|
conf_files="/etc/pmount.allow"
|
|
|
|
post_patch() {
|
|
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
|
|
vsed -i -e 's/-o root -g root //' src/Makefile.in
|
|
}
|