```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 ```
16 lines
436 B
Bash
16 lines
436 B
Bash
# Template file for 'sisl'
|
|
pkgname=sisl
|
|
version=4.6.0
|
|
revision=1
|
|
wrksrc="SISL-SISL-${version}"
|
|
build_style=cmake
|
|
short_desc="SINTEF Spline Library"
|
|
maintainer="Florian Anderiasch <fa@art-core.org>"
|
|
license="AGPL-3.0-only"
|
|
homepage="https://github.com/SINTEF-Geometry/SISL"
|
|
distfiles="$homepage/archive/SISL-$version.tar.gz"
|
|
checksum=b207fe6b4b20775e3064168633256fddd475ff98573408f6f5088a938c086f86
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|