49cb564d14
* 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 ```
15 lines
609 B
Diff
15 lines
609 B
Diff
Adjust install paths and add LICENSE to installed files.
|
|
|
|
--- a/Makefile 2014-02-10 10:36:26.000000000 +0100
|
|
+++ b/Makefile 2015-10-23 20:24:01.308136083 +0200
|
|
@@ -26,7 +26,8 @@
|
|
|
|
install: all
|
|
install -D -m755 ptii $(DESTDIR)$(PREFIX)/bin/ptii
|
|
- install -D -m644 README $(DESTDIR)$(PREFIX)/share/doc/README
|
|
+ install -D -m644 README $(DESTDIR)$(PREFIX)/share/doc/ptii/README
|
|
+ install -D -m644 LICENSE $(DESTDIR)$(PREFIX)/share/licenses/ptii/LICENSE
|
|
|
|
uninstall:
|
|
- rm $(DESTDIR)$(PREFIX)/{bin/ptii,/share/doc/README}
|
|
+ rm $(DESTDIR)$(PREFIX)/{bin/ptii,/share/doc/ptii/README,/share/licenses/ptii/LICENSE}
|