Removed binary build of surface-dtx-daemon and added git source.
This commit is contained in:
parent
dfcd63dbd8
commit
9e52e7423f
4 changed files with 44 additions and 72 deletions
|
@ -1,36 +0,0 @@
|
||||||
# Copyright 2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DESCRIPTION="Utility to control attach/detach of clipboard on Surface Book devices."
|
|
||||||
HOMEPAGE="https://github.com/linux-surface/linux-surface"
|
|
||||||
SRC_URI="https://github.com/linux-surface/surface-dtx-daemon/releases/download/v${PV}-2/${PN}_${PV}-2_amd64.deb"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
BDEPEND=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
unpack ./control.tar.xz
|
|
||||||
unpack ./data.tar.xz
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
doins -r etc
|
|
||||||
doins -r usr
|
|
||||||
fperms 0755 /usr/bin/surface-dtx-userd
|
|
||||||
fperms 0755 /usr/bin/surface-dtx-daemon
|
|
||||||
fperms 0755 /etc/surface-dtx/attach.sh
|
|
||||||
fperms 0755 /etc/surface-dtx/detach.sh
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
# Copyright 2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DESCRIPTION="Utility to control attach/detach of clipboard on Surface Book devices."
|
|
||||||
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"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
BDEPEND=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
unpack ./control.tar.xz
|
|
||||||
unpack ./data.tar.xz
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
doins -r etc
|
|
||||||
doins -r usr
|
|
||||||
fperms 0755 /usr/bin/surface-dtx-userd
|
|
||||||
fperms 0755 /usr/bin/surface-dtx-daemon
|
|
||||||
fperms 0755 /etc/surface-dtx/attach.sh
|
|
||||||
fperms 0755 /etc/surface-dtx/detach.sh
|
|
||||||
}
|
|
||||||
|
|
44
sys-apps/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild
Normal file
44
sys-apps/surface-dtx-daemon/surface-dtx-daemon-9999.ebuild
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
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/systemd
|
||||||
|
doins -r etc/dbus
|
||||||
|
doins -r etc/udev
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue