gentoo-linux-surface-overlay/sys-apps/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild

49 lines
971 B
Bash
Raw Normal View History

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2023-09-12 16:45:17 -07:00
EAPI=8
EGIT_REPO_URI="https://github.com/linux-surface/surface-dtx-daemon.git"
inherit git-r3 cargo
DESCRIPTION="Surface Detach (DTX) Daemon"
HOMEPAGE="https://github.com/linux-surface/surface-dtx-daemon"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
dev-libs/libdbusmenu
dev-libs/glib
sys-apps/dbus
"
src_unpack(){
git-r3_src_unpack
cargo_live_src_unpack
}
src_configure() {
cargo_src_configure
}
src_compile() {
cargo_src_compile --locked
}
src_install() {
cargo_src_install --path surface-dtx-daemon
cargo_src_install --path surface-dtx-userd
insinto /etc
doins -r etc/dtx
doins -r etc/dbus
2023-04-21 16:12:40 -07:00
insinto /lib/udev/rules.d
doins etc/udev/40-surface_dtx.rules
2023-04-21 15:57:18 -07:00
insinto /etc/systemd/system
2023-04-21 16:05:56 -07:00
doins etc/systemd/surface-dtx-daemon.service
2023-04-21 16:19:04 -07:00
insinto /etc/systemd/user
2023-04-21 16:09:01 -07:00
doins etc/systemd/surface-dtx-userd.service
}