commit:     8a9440c22b16d87c9de10f2ee94ca69cd09a856a
Author:     James Calligeros <jcalligeros99 <AT> gmail <DOT> com>
AuthorDate: Thu Jun 19 09:10:49 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun 23 05:36:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a9440c2

sys-apps/asahi-scripts: add 20250426.1

Signed-off-by: James Calligeros <jcalligeros99 <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42661
Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 sys-apps/asahi-scripts/Manifest                    |  1 +
 .../asahi-scripts/asahi-scripts-20250426.1.ebuild  | 52 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/sys-apps/asahi-scripts/Manifest b/sys-apps/asahi-scripts/Manifest
index 924e0e2acacc..1e982a6fb516 100644
--- a/sys-apps/asahi-scripts/Manifest
+++ b/sys-apps/asahi-scripts/Manifest
@@ -1 +1,2 @@
 DIST asahi-scripts-20240822.tar.gz 12264 BLAKE2B 
945bd549a768beb86b69bbdeae088df7d687a534d7003e62574349e40fcb84f37306e96aade89d2fd45882add0d1b31e99b647f38debce4f6fb9185ec848d2a8
 SHA512 
6b99abe8df63b928285d6af54ba745bf9ae7a53f3208c77b90158fa076d34feb091275343039b61320fc043b6021170ad63f0e6df933e6a0a3fbfe146f78caf5
+DIST asahi-scripts-20250426.1.tar.gz 12609 BLAKE2B 
7834ea3ae2650adcabe0cc22cd81e78e354cab6a71e005b00db855d72ce40f9c8d17791e8f70d539e9d180aaff27fc783993547d1d5c26b9b1322d20aa149543
 SHA512 
b92ff0b2c90a0fc10206cc1124d191d6b7658050e46c6ecd8475a098b9e2670c421288e32acf2d9e51a44355857b5078ec1f200b132b3e9539ec948254d3f91e

diff --git a/sys-apps/asahi-scripts/asahi-scripts-20250426.1.ebuild 
b/sys-apps/asahi-scripts/asahi-scripts-20250426.1.ebuild
new file mode 100644
index 000000000000..fad96d4b97e5
--- /dev/null
+++ b/sys-apps/asahi-scripts/asahi-scripts-20250426.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022-2025 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 -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~arm64"
+
+BDEPEND="
+       virtual/udev
+"
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="/usr" SYS_PREFIX="" install-dracut
+       emake DESTDIR="${D}" PREFIX="/usr" install-macsmc-battery
+
+       newinitd "${FILESDIR}/${PN}-macsmc-battery.openrc" "macsmc-battery"
+
+       # install gentoo sys config
+       insinto /etc/default
+       newins "${FILESDIR}"/update-m1n1.gentoo.conf update-m1n1
+       exeinto /usr/lib/kernel/install.d/
+       doexe "${FILESDIR}/99-update-m1n1.install"
+}
+
+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
+
+       elog "Asahi scripts have been installed to /usr/. For more"
+       elog "information on how to use them, please visit the Wiki."
+
+       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
+}

Reply via email to