Use pkgname extraction code from customizepkg.
parent
869a7d2bee
commit
59f0b69b20
|
@ -20,7 +20,7 @@ function is_readable_file {
|
||||||
|
|
||||||
if is_readable_file "$pkgbuild_path" &&
|
if is_readable_file "$pkgbuild_path" &&
|
||||||
! is_readable_file "$pkgbuild_copy_path";then
|
! 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
|
if [[ -n "${pkgname:-''}" ]];then
|
||||||
global_conf_path="${GLOBAL_CONF_DIR_PATH}/${pkgname}"
|
global_conf_path="${GLOBAL_CONF_DIR_PATH}/${pkgname}"
|
||||||
user_conf_path="${USER_CONF_DIR_PATH}/${pkgname}"
|
user_conf_path="${USER_CONF_DIR_PATH}/${pkgname}"
|
||||||
|
|
Loading…
Reference in New Issue