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

37 lines
760 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
DESCRIPTION="Utility to control attach/detach of clipboard on Surface Book devices."
HOMEPAGE="https://github.com/linux-surface/linux-surface"
2022-02-18 15:46:54 -08:00
SRC_URI="https://github.com/linux-surface/surface-dtx-daemon/releases/download/v${PV}-1/${PN}_${PV}-2_amd64.deb"
2021-07-30 14:14:50 -07:00
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
2021-08-01 21:11:09 -07:00
S="${WORKDIR}"
src_prepare() {
2021-08-01 21:17:23 -07:00
unpack ./control.tar.gz
2021-08-01 21:11:09 -07:00
unpack ./data.tar.xz
eapply_user
2021-07-30 14:14:50 -07:00
}
2021-08-01 21:11:09 -07:00
src_install() {
doins -r etc
doins -r usr
2021-08-01 21:25:55 -07:00
fperms 0755 /usr/bin/surface-dtx-userd
fperms 0755 /usr/bin/surface-dtx-daemon
2022-02-18 15:41:21 -08:00
fperms 0755 /etc/surface-dtx/attach.sh
fperms 0755 /etc/surface-dtx/detatch.sh
2021-07-30 14:14:50 -07:00
}
2021-07-30 21:34:19 -07:00