summarylogtreecommitdiffstats
path: root/01.upx.patch
blob: 1883b75fdbf4718dc70bd94b5d3b17fdfe7f4178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- makepkg-optimize
+++ makepkg-optimize
@@ -1556,6 +1556,14 @@
 		fi
 	fi
 
+	# upx - binary compression
+	if check_option "upx" "y"; then
+		if ! type -p upx >/dev/null; then
+			error "$(gettext "Cannot find the %s binary required for compressing binaries.")" "upx"
+			ret=1
+		fi
+	fi
+
 	# optipng - PNG image optimization
 	if check_option "optipng" "y"; then
 		if ! type -p optipng >/dev/null; then