diff options
author | Erich Eckner <git@eckner.net> | 2020-06-06 14:37:39 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-06 14:37:39 +0200 |
commit | 902b77e7f18099fe7bb1238c38285ca4b7cd20cf (patch) | |
tree | 69e9244bc1920f6d8bae5aaeb9f957b3324bb3d9 /bareos/PKGBUILD | |
parent | 150c68fab09438cb29e31d8a1da17a3bc5af2f64 (diff) | |
download | archlinuxewe.git.save-902b77e7f18099fe7bb1238c38285ca4b7cd20cf.tar.xz |
bareos: automatically set correct makedepends
Diffstat (limited to 'bareos/PKGBUILD')
-rw-r--r-- | bareos/PKGBUILD | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD index d67a478e..2f6f22bc 100644 --- a/bareos/PKGBUILD +++ b/bareos/PKGBUILD @@ -745,3 +745,18 @@ package_bareos-storage-python-plugin() { "$srcdir/install/usr/lib/bareos/plugins/bareos-sd-class-plugin.py" \ -t "$pkgdir/usr/lib/bareos/plugins" } + +makedepends+=( + $( + for _pn in "${pkgname[@]}"; do + eval 'declare -f package_'"${_pn}" \ + | sed -n ' + s/^\s*_pinned_dependencies=(// + T + s/);\?$// + T + p + ' + done + ) +) |