a03d116397
```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 ```
20 lines
616 B
Bash
20 lines
616 B
Bash
# Template file for 'exfat-dkms'
|
|
pkgname=exfat-dkms
|
|
version=1.2.8
|
|
revision=5
|
|
_commit=01c30ad52625a7261e1b0d874553b6ca7af25966
|
|
wrksrc="exfat-nofuse-${_commit}"
|
|
short_desc="Exfat kernel driver (nofuse)"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/dorimanx/exfat-nofuse"
|
|
distfiles="https://github.com/dorimanx/exfat-nofuse/archive/${_commit}.tar.gz"
|
|
checksum=b88a98f0a7e1b987465f5ccfcafb384b293506c7fec9d3b91b803e0fe5b16e0a
|
|
|
|
dkms_modules="exfat ${version}"
|
|
depends="dkms"
|
|
|
|
do_install() {
|
|
vmkdir usr/src/exfat-${version}
|
|
vcopy "*" usr/src/exfat-${version}
|
|
}
|