Changed to .deb release.

This commit is contained in:
Ronald Farrer 2021-08-01 21:11:09 -07:00
parent 87ce697054
commit 1087ab6d4a

View file

@ -7,6 +7,7 @@ inherit cargo git-r3
DESCRIPTION="Utility to control attach/detach of clipboard on Surface Book devices." DESCRIPTION="Utility to control attach/detach of clipboard on Surface Book devices."
HOMEPAGE="https://github.com/linux-surface/linux-surface" HOMEPAGE="https://github.com/linux-surface/linux-surface"
SRC_URI="https://github.com/linux-surface/surface-dtx-daemon/releases/download/v${PV}-1/${PN}_${PV}-1_amd64.deb"
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
@ -16,19 +17,18 @@ DEPEND=""
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
BDEPEND="" BDEPEND=""
EGIT_REPO_URI="https://github.com/linux-surface/surface-dtx-daemon" S="${WORKDIR}"
S="${WORKDIR}/surface-dtx-daemon-9999"
src_prepare() {
unpack ./control.tar.xz
unpack ./data.tar.xz
eapply_user
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
} }
src_compile() { src_install() {
rm -f Cargo.toml doins -r etc
cd surface-dtx-daemon doins -r usr
cargo_src_compile --locked
cd ../surface-dtx-userd
cargo_src_compile --locked
} }