diff --git a/app-laptop/system76-acpi-module/system76-acpi-module-9999.ebuild b/app-laptop/system76-acpi-module/system76-acpi-module-9999.ebuild new file mode 100644 index 0000000..6633f33 --- /dev/null +++ b/app-laptop/system76-acpi-module/system76-acpi-module-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 2020-2023 Bryan Gardiner +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 git-r3 + +DESCRIPTION="System76 ACPI Driver" +HOMEPAGE="https://github.com/pop-os/system76-acpi-dkms" + +EGIT_REPO_URI="https://github.com/pop-os/system76-acpi-dkms.git" +EGIT_BRANCH="master" +EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}" +EGIT_SUBMODULES=( '*' ) + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64" + +RDEPEND="" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_compile() { + local modlist=( "system76_acpi=misc" ) + local modargs=( "KERNEL_DIR=${KERNEL_DIR}" ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + insinto /lib/udev/hwdb.d + doins lib/udev/hwdb.d/* +}