summarylogtreecommitdiffstats
path: root/05.svgo.patch
blob: f3330f981cf25902ec458013182c8514a7de9bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- makepkg-optimize	2016-03-21 08:09:30.386922025 +0900
+++ makepkg-optimize+svgo	2016-03-21 15:18:36.410371191 +0900
@@ -1603,6 +1603,13 @@
 		fi
 	fi
 
+	# svgo - svg image optimization
+	if check_option "svgo" "y"; then
+		if ! type -p svgo >/dev/null; then
+			error "$(gettext "Cannot find the %s binary required for optimizing SVG images.")" "svgo"
+			ret=1
+		fi
+	fi
 	# distcc - compilation with distcc
 	if check_buildoption "distcc" "y"; then
 		if ! type -p distcc >/dev/null; then