build: support build on garudalinux

This commit is contained in:
tison
2023-04-13 09:47:52 +00:00
committed by ob-robot
parent 71afcf994b
commit 75a7b5ec3f

View File

@ -80,7 +80,7 @@ function get_os_release() {
uos) uos)
version_ge "20" && compat_centos7 && return version_ge "20" && compat_centos7 && return
;; ;;
arch) arch | garuda)
compat_centos8 && return compat_centos8 && return
;; ;;
rocky) rocky)
@ -259,7 +259,7 @@ do
fi fi
fi fi
echo_log "unpack package <${pkg}>... \c" echo_log "unpack package <${pkg}>... \c"
if [ "$ID" = "arch" ]; then if [[ "$ID" = "arch" || "$ID" = "garuda" ]]; then
(cd ${TARGET_DIR_3RD} && rpmextract.sh "${TARGET_DIR_3RD}/pkg/${pkg}") (cd ${TARGET_DIR_3RD} && rpmextract.sh "${TARGET_DIR_3RD}/pkg/${pkg}")
else else
(cd ${TARGET_DIR_3RD} && rpm2cpio "${TARGET_DIR_3RD}/pkg/${pkg}" | cpio -di -u --quiet) (cd ${TARGET_DIR_3RD} && rpm2cpio "${TARGET_DIR_3RD}/pkg/${pkg}" | cpio -di -u --quiet)