diff --git a/app-misc/surface-dtx-daemon/files/cargo.patch b/app-misc/surface-dtx-daemon/files/cargo.patch new file mode 100644 index 0000000..6a5efb1 --- /dev/null +++ b/app-misc/surface-dtx-daemon/files/cargo.patch @@ -0,0 +1,16 @@ +--- Cargo.toml 2021-07-30 20:02:29.337028884 -0700 ++++ Cargo.toml.new 2021-07-30 20:06:19.254133528 -0700 +@@ -1,10 +1,10 @@ + [package] +-name = "surface" +-version = "0.4.1" ++name = "surface-dtx-daemon" ++version = "0.3.0" + authors = ["Maximilian Luz "] +-description = "Control various aspects of Microsoft Surface devices on Linux from the Command-Line" ++description = "Linux User-Space Detachment System (DTX) Daemon for the Surface ACPI Driver (and Surface Books). Currently only the Surface Book 2 is supported, due to lack of driver-support on the Surface Book 1. This may change in the future." + +-repository = "https://github.com/linux-surface/surface-control" ++repository = "https://github.com/linux-surface/surface-dtx-daemon" + readme = "README.md" + license = "MIT" diff --git a/app-misc/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild b/app-misc/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild index dc86335..1f125a4 100644 --- a/app-misc/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild +++ b/app-misc/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild @@ -19,6 +19,10 @@ BDEPEND="" EGIT_REPO_URI="https://github.com/linux-surface/surface-dtx-daemon" S="${WORKDIR}/surface-dtx-daemon-9999" +src_prepare() { + epatch "${FILESDIR}/cargo.patch" +} + src_unpack() { git-r3_src_unpack cargo_live_src_unpack