Skip to content

Commit

Permalink
sys-apps/asahi-scripts: Add an install hook to automatically run upda…
Browse files Browse the repository at this point in the history
…te-m1n1

Signed-off-by: Sasha Finkelstein <[email protected]>
  • Loading branch information
Sasha Finkelstein committed Sep 15, 2024
1 parent 74e768d commit 8bb6c84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion sys-apps/asahi-scripts/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
DIST asahi-scripts-20240623.tar.gz 11562 BLAKE2B b69a3d697ba60fc74bc41de8c850bda2427d039142e1d0a1b354a0fb63b74091f65298dc3b325f711a4743f5aabf3cc1a724a121045d49396ab014b32e5c9c2c SHA512 2003e0a665823a12d2399af09062cbed7300c4cb1b8d9f0b993575d98c71a6d5ebb50dd0cb5d64e8fd05177ca2f2f4bc6d74f9bb87d04407a880c489a5b6bac4
DIST asahi-scripts-20240822.tar.gz 12264 BLAKE2B 945bd549a768beb86b69bbdeae088df7d687a534d7003e62574349e40fcb84f37306e96aade89d2fd45882add0d1b31e99b647f38debce4f6fb9185ec848d2a8 SHA512 6b99abe8df63b928285d6af54ba745bf9ae7a53f3208c77b90158fa076d34feb091275343039b61320fc043b6021170ad63f0e6df933e6a0a3fbfe146f78caf5
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ 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"
KEYWORDS="~arm64"

BDEPEND="
dev-build/make"
dev-build/make
virtual/udev
"

src_prepare() {
default
Expand All @@ -23,10 +25,15 @@ src_compile() {

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() {
Expand Down
2 changes: 2 additions & 0 deletions sys-apps/asahi-scripts/files/99-update-m1n1.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
update-m1n1

0 comments on commit 8bb6c84

Please sign in to comment.