ae69000001
* arduino and antiword 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 ```
29 lines
887 B
Bash
29 lines
887 B
Bash
# Template file for 'acpi_call-dkms'
|
|
pkgname=acpi_call-dkms
|
|
version=1.2.0
|
|
revision=3
|
|
archs="i686 x86_64*"
|
|
wrksrc=acpi_call-${version}
|
|
short_desc="Kernel module allowing calls to ACPI methods through /proc/acpi/call"
|
|
maintainer="Daniel A. Maierhofer <git@damadmai.at>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/damadmai/acpi_call"
|
|
distfiles="$homepage/archive/v$version.tar.gz"
|
|
checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
|
|
|
|
dkms_modules="acpi_call ${version}"
|
|
depends="dkms"
|
|
|
|
do_install() {
|
|
vmkdir usr/src/acpi_call-${version}
|
|
vcopy Makefile usr/src/acpi_call-${version}
|
|
vcopy dkms.conf usr/src/acpi_call-${version}
|
|
vcopy "*.c" usr/src/acpi_call-${version}
|
|
|
|
vmkdir usr/share/acpi_call
|
|
vcopy "examples/*.sh" usr/share/acpi_call
|
|
vcopy "support/*" usr/share/acpi_call
|
|
vcopy "support/windump_hack/*" usr/share/acpi_call
|
|
|
|
vdoc "README.md"
|
|
}
|