Skip to content

Commit

Permalink
x11-drivers/OpenTabletDriver-bin: added v0.6.0.2, updated deps
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Ethan Nijmeh <[email protected]>
  • Loading branch information
ethannij committed Jan 17, 2022
1 parent 252666e commit 4250f42
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 2 deletions.
2 changes: 2 additions & 0 deletions x11-drivers/OpenTabletDriver-bin/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DIST OpenTabletDriver-source-0.5.3.3.tar.gz 175040 BLAKE2B 117a32683dfbcec54c8a8d2e75350e4fc81f0e7592ad55468079d1bd85fb670acc60404befcad3704138ad59927d7237a5c2dac592c0a8f9a0eff1a44cd2c36c SHA512 f2ba081463b4a3e02564430c925db077693d681f72bbc6fd104ece395e21a9db6383cd4b5e69fcb5774c6c3c24f67464f72e670cc3bdf1fe21edec2bdf5c42fc
DIST OpenTabletDriver-source-0.6.0.2.tar.gz 247519 BLAKE2B a84db9d7e1d86e8b6bf90231187800e4fb355c66e1c9e732a9e3687de0afeaeb0d69f397b5d3387bdb7a1e88393ddb26bb6c0d2920fa8d1ca51bc9992a818dae SHA512 0414a033e5bf3c5498676433502d44deb320d69a26823a1c731ab750c8ba71a3ff5af31662255e0c6c45e4d17f3009500e0a87967ca132bf309cf006cdb640b3
DIST OpenTabletDriver-v0.5.3.3.tar.gz 4052905 BLAKE2B 36c60dc87368dbe9595182ad2439447692cec8444bc005cc320d22c3f1b13e501e57ad038decd86d4c1129a44ba27cf1c3ebd4ca4bd666732a1dac755095c787 SHA512 83415abea4b67ed4af499c1edf91f2b81959a3888c9d64e4854086ade50da883c690b784fd5641307d0ac1d75ee8120090a834c3e910eb57bed92a20b4cc10b3
DIST OpenTabletDriver-v0.6.0.2.tar.gz 4199076 BLAKE2B 754822c707388e8ac3c79a829ad67edad766381e4dcf96728b2f74e908daea1d7fb90b47ee3a922326cbf87ddd2a615ac1a85ca37d36ec7938b22c9f7c58d82e SHA512 0ff63e94ce36d4afc7d8862ee51c0444e734640b9ae468e733231dbfc3ecdcd6cf90f0128a0be1934a64ee79f0c5860a0812681537d4d9e1b478581a7c2acc22
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2021 Gentoo Authors
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -22,7 +22,7 @@ DEPEND="
dev-libs/libevdev
x11-libs/gtk+:3
virtual/udev
dev-dotnet/dotnet-sdk-bin
dev-dotnet/dotnet-sdk-bin:5.0
"

QA_PREBUILT="*"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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:6.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 "/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
}

0 comments on commit 4250f42

Please sign in to comment.