Skip to content

Commit

Permalink
app-emulation/fex-rootfs-mesa-asahi: Add 20240909
Browse files Browse the repository at this point in the history
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
  • Loading branch information
Sasha Finkelstein committed Sep 14, 2024
1 parent b5e3f13 commit c024a60
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-emulation/fex-rootfs-mesa-asahi/Manifest
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
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'
}
10 changes: 10 additions & 0 deletions app-emulation/fex-rootfs-mesa-asahi/metadata.xml
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>

0 comments on commit c024a60

Please sign in to comment.