gentoo-linux-surface-overlay/app-misc/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild

34 lines
630 B
Bash
Raw Normal View History

2021-07-30 14:14:50 -07:00
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cargo git-r3
DESCRIPTION="Utility to control attach/detach of clipboard on Surface Book devices."
HOMEPAGE="https://github.com/linux-surface/linux-surface"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
EGIT_REPO_URI="https://github.com/linux-surface/surface-dtx-daemon"
S="${WORKDIR}/surface-dtx-daemon-9999"
2021-07-30 20:09:29 -07:00
src_prepare() {
epatch "${FILESDIR}/cargo.patch"
}
2021-07-30 14:14:50 -07:00
src_unpack() {
git-r3_src_unpack
2021-07-30 19:59:10 -07:00
cargo_live_src_unpack
2021-07-30 14:14:50 -07:00
}
src_compile() {
2021-07-30 19:59:10 -07:00
cargo_src_compile --locked
2021-07-30 14:14:50 -07:00
}