summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/util/pkgbuild.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/libmakepkg/util/pkgbuild.sh.in')
-rw-r--r--scripts/libmakepkg/util/pkgbuild.sh.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/libmakepkg/util/pkgbuild.sh.in b/scripts/libmakepkg/util/pkgbuild.sh.in
index 0dc239d1..298275a8 100644
--- a/scripts/libmakepkg/util/pkgbuild.sh.in
+++ b/scripts/libmakepkg/util/pkgbuild.sh.in
@@ -100,6 +100,15 @@ extract_function_variable() {
return $r
}
+exists_function_variable() {
+ # $1: function name
+ # $2: variable name
+
+ local funcname=$1 attr=$2 out
+ extract_function_variable "$funcname" "$attr" 0 out ||
+ extract_function_variable "$funcname" "$attr" 1 out
+}
+
get_pkgbuild_attribute() {
# $1: package name
# $2: attribute name