diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
commit | 24ee8c58752f0dc4376961a28f7364e6d7c7a7aa (patch) | |
tree | 0a71618e774dce4efc0ddc7808557a03925de8d9 /sys-apps/asahi-scripts/asahi-scripts-20231219.1.ebuild | |
parent | a625efe29cec7f7c437cf33a956ea99eed1e4bd9 (diff) |
gentoo auto-resync : 24:02:2024 - 17:40:43
Diffstat (limited to 'sys-apps/asahi-scripts/asahi-scripts-20231219.1.ebuild')
-rw-r--r-- | sys-apps/asahi-scripts/asahi-scripts-20231219.1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/asahi-scripts/asahi-scripts-20231219.1.ebuild b/sys-apps/asahi-scripts/asahi-scripts-20231219.1.ebuild new file mode 100644 index 000000000000..4e4b1fe2eda2 --- /dev/null +++ b/sys-apps/asahi-scripts/asahi-scripts-20231219.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +DESCRIPTION="Apple Silicon support scripts" +HOMEPAGE="https://asahilinux.org/" +SRC_URI="https://github.com/AsahiLinux/${PN}/archive/refs/tags/${PV}.tar.gz -> ${PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~arm64" + +PATCHES=( + "${FILESDIR}/makefile.patch" + "${FILESDIR}/update-m1n1-dtbs.patch" +) + +src_install() { + default + emake DESTDIR="${D}" SYS_PREFIX="" install-dracut +} + +pkg_postinst() { + if [[ ! -e ${ROOT}/usr/lib/asahi-boot ]]; then + ewarn "These scripts are intended for use on Apple Silicon" + ewarn "machines with the Asahi tooling installed! Please" + ewarn "install sys-boot/m1n1, sys-boot/u-boot and" + ewarn "sys-firmware/asahi-firmware!" + fi + + if [[ -e ${ROOT}/bin/update-m1n1 ]]; then + ewarn "You need to remove /bin/update-m1n1." + fi + + if [[ -e ${ROOT}/usr/local/share/asahi-scripts/functions.sh ]]; then + ewarn "You have upgraded to a new version of ${PN}. Please" + ewarn "remove /usr/local/share/asahi-scripts/," + ewarn " /usr/local/bin/update-m1n1, and" + ewarn "/usr/local/bin/update-vendor-firmware." + fi + + if [[ -e ${ROOT}/etc/dracut.conf.d/10-apple.conf ]]; then + ewarn "Please remove /etc/dracut.conf.d/10-apple.conf" + fi +} |