* 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 ```
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'pam-mount'
|
|
pkgname=pam-mount
|
|
version=2.16
|
|
revision=6
|
|
wrksrc="pam_mount-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-ssbindir=/usr/bin --with-slibdir=/usr/lib"
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="cryptsetup-devel libHX-devel libmount-devel libxml2-devel pam-devel
|
|
pcre-devel"
|
|
depends="hxtools pam"
|
|
short_desc="PAM module that can mount volumes for a user session"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://pam-mount.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/pam-mount/pam_mount/${version}/pam_mount-${version}.tar.xz"
|
|
checksum=ae0207ea6c96189414f906a7b0880abc7751a98e26b3d0375c9afab3722471e7
|
|
conf_files="/etc/security/pam_mount.conf.xml"
|
|
|
|
libpam-mount_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libcryptmount.so.*"
|
|
vmove usr/lib/security
|
|
}
|
|
}
|
|
|
|
libpam-mount-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libpam-mount-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|