abinfo "Installing assets ..."
PREFIX="$PKGDIR"/usr/ "$SRCDIR"/install-assets.sh

abinfo "Installing default config ..."
install -dvm755 "$PKGDIR"/etc/

if ab_match_arch amd64 || ab_match_arch loongson3; then
	cat << EOF > "$PKGDIR"/etc/systemd-boot-friend.conf
# vmlinux: vmlinux filename format
vmlinux = "vmlinuz-{VERSION}"

# initrd: initrd filename format
initrd = "initramfs-{VERSION}.img"

# distro: distro name
distro = "AOSC OS"

# esp_mountpoint: defines where the EFI System Partition is located.
# Notice: no tailing /
esp_mountpoint = "/efi"

# bootargs: your boot argument
[bootargs]
#default = ""
EOF

else
	cat << EOF > "$PKGDIR"/etc/systemd-boot-friend.conf
# vmlinux: vmlinux filename format
vmlinux = "vmlinux-{VERSION}"

# initrd: initrd filename format
initrd = "initramfs-{VERSION}.img"

# distro: distro name
distro = "AOSC OS"

# esp_mountpoint: defines where the EFI System Partition is located.
# Notice: no tailing /
esp_mountpoint = "/efi"

# bootargs: your boot argument
[bootargs]
#default = ""
EOF

fi
