blob: 51a840eb118f0b7fd7c877604c086287636bca75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
MY_PN=OpenTabletDriver
DESCRIPTION="Cross platform tablet driver (binary package)"
HOMEPAGE="https://github.com/OpenTabletDriver"
SRC_URI="https://github.com/OpenTabletDriver/OpenTabletDriver/archive/refs/tags/v${PV}.tar.gz -> OpenTabletDriver-source-${PV}.tar.gz https://github.com/OpenTabletDriver/OpenTabletDriver/releases/download/v${PV}/OpenTabletDriver.linux-x64.tar.gz -> OpenTabletDriver-v${PV}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
x11-libs/libX11
x11-libs/libXrandr
dev-libs/libevdev
x11-libs/gtk+:3
virtual/udev
dev-dotnet/dotnet-sdk-bin:5.0
"
QA_PREBUILT="*"
S="${WORKDIR}/${MY_PN}"
src_install() {
local LP=opentabletdriver
local SP="otd"
cd "${S}" || die
exeinto "/usr/share/${MY_PN}"
exeopts -o root -Dm755
for binary in *.dll *.json; do
doexe "$binary"
done
for bin in *.Daemon *.UX.Gtk *.Console; do
doexe "$bin"
done
insinto "/usr/share/${MY_PN}"
doins -r "Configurations"
insinto "/lib/udev/rules.d"
doins -r "${S}/99-${LP}.rules"
udevadm control --reload || die
cd "${FILESDIR}" || die
dobin "${SP}"
dobin "${SP}-gui"
cd "${WORKDIR}/${MY_PN}-${PV}/${MY_PN}.UX/Assets" || die
doicon "otd.png"
make_desktop_entry /usr/bin/otd-gui OpenTabletDriver otd Settings
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Please replug your tablet before attempting to use the driver"
fi
}
|