Use pkgname extraction code from customizepkg.

master
Icedream 2023-01-21 06:52:45 +01:00
parent 869a7d2bee
commit 59f0b69b20
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 1 deletions

View File

@ -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}"