diff options
author | Que Quotion | 2018-11-06 12:22:48 +0900 |
---|---|---|
committer | Que Quotion | 2018-11-06 12:22:48 +0900 |
commit | ed9d3050d9350597d84b2804163434c8f9eb6294 (patch) | |
tree | e74ae4b3b92fbe1cc4e15a6dc70c12c804823ee2 /upx-exec.sh.in | |
parent | 4a5e4ac639f0aaedf2006e6fff618d06defbef5a (diff) | |
download | aur-ed9d3050d9350597d84b2804163434c8f9eb6294.tar.gz |
executable finding scripts
Diffstat (limited to 'upx-exec.sh.in')
-rw-r--r-- | upx-exec.sh.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/upx-exec.sh.in b/upx-exec.sh.in new file mode 100644 index 000000000000..0cb0c5cb83a4 --- /dev/null +++ b/upx-exec.sh.in @@ -0,0 +1,22 @@ +#!/usr/bin/bash +# +# upx.sh - Compress binaries +# + +[[ -n "$LIBMAKEPKG_EXECUTABLE_UPX_SH" ]] && return +LIBMAKEPKG_EXECUTABLE_UPX_SH=1 + +LIBRARY=${LIBRARY:-'@libmakepkgdir@'} + +source "$LIBRARY/util/option.sh" + +executable_functions+=('executable_upx') + +executable_upx() { + 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 +} |