* gcc is kept at -Np0, because of void-cross ```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 ```
20 lines
520 B
Diff
20 lines
520 B
Diff
--- a/Makefile 2015-07-25 21:11:40.397311183 +0200
|
|
+++ b/Makefile 2015-07-25 21:11:59.561311865 +0200
|
|
@@ -1,5 +1,5 @@
|
|
-CC=valac
|
|
-CFLAGS=--pkg gtk+-3.0
|
|
-LDFLAGS=-X -lm
|
|
+VALAC=valac
|
|
+VALACFLAGS=--pkg gtk+-3.0
|
|
+VALALDFLAGS=-X -lm
|
|
SOURCE=gtk-theme-config.vala
|
|
BINARY=gtk-theme-config
|
|
@@ -14,7 +14,7 @@ INSTALL_DATA=$(INSTALL) -Dpm 0644
|
|
all: $(BINARY)
|
|
|
|
$(BINARY): $(SOURCE)
|
|
- $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCE) -o $(BINARY)
|
|
+ $(VALAC) $(VALACFLAGS) $(VALALDFLAGS) $(SOURCE) -o $(BINARY)
|
|
|
|
clean:
|
|
$(CLEAN) $(BINARY)
|