Compare commits

..

2 Commits

Author SHA1 Message Date
f59c773dbc Add other kernels to patch_pkgbase() 2023-07-01 13:49:41 +02:00
2ce4494050 artixpkg: fix args 2023-07-01 12:40:04 +02:00
3 changed files with 4 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ artixpkg_repo_add() {
done
DEST="$1"
shift
pkgbases+=("$@")
if ! in_array "${DEST}" "${ARTIX_DB[@]}"; then

View File

@@ -21,7 +21,7 @@ patch_pkgbase(){
-e '/nscd.service/d' \
-i "${pkgbuild}"
;;
linux|linux-lts)
linux|linux-lts|linux-zen|linux-hardened|linux-rt|linux-rt-lts)
msg "Patching %s" "${name}"
sed -e 's|KBUILD_BUILD_HOST=.*|KBUILD_BUILD_HOST=artixlinux|' -i "${pkgbuild}"
sed -e 's|CONFIG_DEFAULT_HOSTNAME=.*|CONFIG_DEFAULT_HOSTNAME="artixlinux"|' \

View File

@@ -64,13 +64,14 @@ artixpkg_repo_remove() {
die "invalid argument: %s" "$1"
;;
*)
pkgbases=("$@")
break
;;
esac
done
DEST="$1"
shift
pkgbases=("$@")
if ! in_array "${DEST}" "${ARTIX_DB[@]}"; then
die "${DEST} does not exist!"