Compare commits

...

2 Commits

Author SHA1 Message Date
Icedream 59f0b69b20
Use pkgname extraction code from customizepkg. 2023-01-21 06:52:45 +01:00
Icedream 869a7d2bee
Revert "Remove package name parsing from makepkg-customizepkg."
This reverts commit edea970001.
2023-01-21 06:52:00 +01:00
1 changed files with 9 additions and 1 deletions

View File

@ -20,7 +20,15 @@ function is_readable_file {
if is_readable_file "$pkgbuild_path" &&
! is_readable_file "$pkgbuild_copy_path";then
customizepkg --modify
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}"
if is_readable_file "$global_conf_path" ||
is_readable_file "$user_conf_path";then
customizepkg --modify
fi
fi
fi
exec /usr/bin/makepkg ${@}