summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/util/pkgbuild.sh.in
diff options
context:
space:
mode:
authormorganamilo <morganamilo@gmail.com>2019-01-30 19:07:20 +0100
committerAllan McRae <allan@archlinux.org>2019-01-31 01:02:37 +0100
commit75aae126c423dcc9b215aef57daff9e7bd8f5f6b (patch)
tree090e8f87eadd5eacfb3c19b5b1696ad02383b1a7 /scripts/libmakepkg/util/pkgbuild.sh.in
parent6cf0548128d6d1a839ba93997b017661520395be (diff)
downloadpacman-75aae126c423dcc9b215aef57daff9e7bd8f5f6b.tar.gz
pacman-75aae126c423dcc9b215aef57daff9e7bd8f5f6b.tar.xz
libmakepkg: centralise random arrays of pkgbuild variables
Refactor many of the different arrays of pkgbuild variables into scripts/libmakepkg/util/schema.sh.in. Signed-off-by: morganamilo <morganamilo@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/util/pkgbuild.sh.in')
-rw-r--r--scripts/libmakepkg/util/pkgbuild.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/libmakepkg/util/pkgbuild.sh.in b/scripts/libmakepkg/util/pkgbuild.sh.in
index b29229a3..0dc239d1 100644
--- a/scripts/libmakepkg/util/pkgbuild.sh.in
+++ b/scripts/libmakepkg/util/pkgbuild.sh.in
@@ -21,6 +21,8 @@
[[ -n "$LIBMAKEPKG_UTIL_PKGBUILD_SH" ]] && return
LIBMAKEPKG_UTIL_PKGBUILD_SH=1
+source "$LIBRARY/util/schema.sh"
+
have_function() {
declare -f "$1" >/dev/null