-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/fex-rootfs-mesa-asahi: Add 20240909
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
- Loading branch information
Sasha Finkelstein
committed
Sep 14, 2024
1 parent
b5e3f13
commit c024a60
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DIST fex-rootfs-mesa-asahi-20240909.sqfs 11997184 BLAKE2B 7b6c3910238c944f1d9e2dcffe4542aca2c8203ab3ae5d62ac95be43deb6fa19fadac7baafbb22ea8fe1677c53dc6e38638bd478ea314b45227429a309b9fc68 SHA512 56a9faa9890ef944d176db251b674a1dc749268e5a2789676f16a578edb6db4b8e8f9dfb611e54d3e675e926e3a829f772ee61b252790837f95b124b18cfbb22 | ||
DIST fex-rootfs-mesa-asahi-20240909.tar.gz 7089 BLAKE2B 617bab6bc524ab427b7554824ab74cd7daf5ae4f18730ac0f1aa2937dd71781ba379e08bf54fedbfec17683999832b2d910682817babdb1be69f0d4c42fa4ae7 SHA512 37f2ed0ffffdeec9e807b836b87bad480c20e4d1d657b1a9ac0c8004da51d9f839f449eb4c0b2c5717492eb880a580522d2edadb7d403796bbe43232b434ed0d |
59 changes: 59 additions & 0 deletions
59
app-emulation/fex-rootfs-mesa-asahi/fex-rootfs-mesa-asahi-20240909.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit systemd linux-info | ||
|
||
DESCRIPTION="FEX rootfs overlay containing asahi mesa" | ||
HOMEPAGE="https://github.com/WhatAmISupposedToPutHere/fex-rootfs" | ||
|
||
SRC_URI=" | ||
https://github.com/WhatAmISupposedToPutHere/fex-rootfs/releases/download/mesa-${PV}/fex-mesa.sqfs -> ${P}.sqfs | ||
https://github.com/WhatAmISupposedToPutHere/fex-rootfs/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz | ||
" | ||
|
||
S="${WORKDIR}/fex-rootfs-${PV}" | ||
|
||
LICENSE="metapackage MIT" | ||
SLOT="0" | ||
KEYWORDS="-* ~arm64" | ||
DEPEND=" | ||
systemd? ( sys-apps/systemd ) | ||
" | ||
RDEPEND=" | ||
${DEPEND} | ||
app-emulation/fex-rootfs-gentoo | ||
" | ||
IUSE="systemd" | ||
|
||
pkg_pretend() { | ||
CONFIG_CHECK="~SQUASHFS ~SQUASHFS_ZSTD" | ||
check_extra_config | ||
} | ||
|
||
src_install() { | ||
local base="/usr/share/fex-emu-rootfs-layers/gentoo" | ||
insinto "${base}/images/" | ||
newins "${DISTDIR}/${P}.sqfs" 30-mesa.sqfs | ||
systemd_dounit 'systemd/usr-share-fex\x2demu\x2drootfs\x2dlayers-gentoo-layers-30\x2dmesa.mount' | ||
} | ||
|
||
pkg_prerm() { | ||
[[ "${MERGE_TYPE}" == "buildonly" || "$(systemd_is_booted)" == 0 ]] && return | ||
systemctl daemon-reload | ||
systemctl stop 'usr-share-fex\x2demu\x2drootfs\x2dlayers-gentoo-layers-30\x2dmesa.mount' | ||
} | ||
|
||
pkg_postrm() { | ||
[[ "$(systemd_is_booted)" == 0 ]] && return | ||
rmdir "${EROOT}/usr/share/fex-emu-rootfs-layers/gentoo/layers/30-mesa/" 2>/dev/zero | ||
systemctl daemon-reload | ||
systemctl start 'usr-share-fex\x2demu-RootFS-Gentoo.mount' | ||
} | ||
|
||
pkg_postinst() { | ||
[[ "${MERGE_TYPE}" == "buildonly" || "$(systemd_is_booted)" == 0 ]] && return | ||
systemctl daemon-reload | ||
systemctl restart 'usr-share-fex\x2demu-RootFS-Gentoo.mount' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>asahi@gentoo.org</email> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">WhatAmISupposedToPutHere/fex-rootfs</remote-id> | ||
</upstream> | ||
</pkgmetadata> |