void-packages/srcpkgs/stk/patches/lib-include-dir.patch
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

21 lines
763 B
Diff

--- a/src/Makefile.in 2021-01-18 20:34:19.338872822 +0700
+++ b/src/Makefile.in 2021-01-18 20:35:11.314028147 +0700
@@ -93,13 +93,13 @@
$(LN) -s @sharedname@ $(SHAREDLIB)
install-headers:
- install -d $(DESTDIR)$(PREFIX)$(INCLUDEDIR)/stk
- cp -R ../include/*.h $(DESTDIR)$(PREFIX)$(INCLUDEDIR)/stk
+ install -d $(DESTDIR)$(INCLUDEDIR)/stk
+ cp -R ../include/*.h $(DESTDIR)$(INCLUDEDIR)/stk
install: $(SHAREDLIB) install-headers
- install -d $(DESTDIR)$(PREFIX)$(LIBDIR)
- install -m 644 @sharedname@ $(DESTDIR)$(PREFIX)$(LIBDIR)
- ln -sf @sharedname@ $(DESTDIR)$(PREFIX)$(LIBDIR)/$(SHAREDLIB)
+ install -d $(DESTDIR)$(LIBDIR)
+ install -m 644 @sharedname@ $(DESTDIR)$(LIBDIR)
+ ln -sf @sharedname@ $(DESTDIR)$(LIBDIR)/$(SHAREDLIB)
$(OBJECTS) : Stk.h