diff --git a/home/dotfiles/local/bin/makepkg-customizepkg b/home/dotfiles/local/bin/makepkg-customizepkg index 6a1bdec..a145bb7 100755 --- a/home/dotfiles/local/bin/makepkg-customizepkg +++ b/home/dotfiles/local/bin/makepkg-customizepkg @@ -20,7 +20,7 @@ function is_readable_file { if is_readable_file "$pkgbuild_path" && ! is_readable_file "$pkgbuild_copy_path";then - source "$pkgbuild_path" + eval $(grep -Pazo '[^[:print:]][[:blank:]]*_?(pkg.*|name)=(\((.|\n)*?\)|[^#]*?(?= *#|\x0a))' ./PKGBUILD | grep -Eva '\$\(|`|pkgdesc') if [[ -n "${pkgname:-''}" ]];then global_conf_path="${GLOBAL_CONF_DIR_PATH}/${pkgname}" user_conf_path="${USER_CONF_DIR_PATH}/${pkgname}"