void-packages/srcpkgs/skroll/patches/fix-makefile.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

15 lines
287 B
Diff

Enable configurable CC and LD.
--- a/Makefile 2015-03-16 11:50:36.000000000 +0100
+++ b/Makefile 2015-10-25 23:55:25.205767890 +0100
@@ -1,8 +1,8 @@
PREFIX:=/usr
MANPREFIX:=${PREFIX}/share/man
-CC = cc
-LD= ${CC}
+CC ?= cc
+LD ?= ${CC}
RM = rm
GZ = gzip
CFLAGS = -Wall -pedantic