From 869a7d2bee873952e4cb1e46ffd1e009477f5bf4 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sat, 21 Jan 2023 06:52:00 +0100 Subject: [PATCH] Revert "Remove package name parsing from makepkg-customizepkg." This reverts commit edea970001a8731d73085db456b858d6a548e4bf. --- home/dotfiles/local/bin/makepkg-customizepkg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/dotfiles/local/bin/makepkg-customizepkg b/home/dotfiles/local/bin/makepkg-customizepkg index 5a2ea50..6a1bdec 100755 --- a/home/dotfiles/local/bin/makepkg-customizepkg +++ b/home/dotfiles/local/bin/makepkg-customizepkg @@ -20,7 +20,15 @@ function is_readable_file { if is_readable_file "$pkgbuild_path" && ! is_readable_file "$pkgbuild_copy_path";then - customizepkg --modify + source "$pkgbuild_path" + if [[ -n "${pkgname:-''}" ]];then + global_conf_path="${GLOBAL_CONF_DIR_PATH}/${pkgname}" + user_conf_path="${USER_CONF_DIR_PATH}/${pkgname}" + if is_readable_file "$global_conf_path" || + is_readable_file "$user_conf_path";then + customizepkg --modify + fi + fi fi exec /usr/bin/makepkg ${@}