aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Nijmeh <ethannij@gmail.com>2021-06-07 17:43:25 -0700
committerEthan Nijmeh <ethannij@gmail.com>2021-06-07 17:43:25 -0700
commit2c1c04b6d725e71cf0aa2884f6c70f5fd2a9d040 (patch)
tree06337a021187e9b78e8d98be8464f8a5f3a8220c /x11-drivers
parentmedia-gfx/sic: Drop old v0.18.0 (diff)
downloadguru-2c1c04b6d725e71cf0aa2884f6c70f5fd2a9d040.tar.gz
guru-2c1c04b6d725e71cf0aa2884f6c70f5fd2a9d040.tar.bz2
guru-2c1c04b6d725e71cf0aa2884f6c70f5fd2a9d040.zip
x11-drivers/OpenTabletDriver-bin: added ver 0.5.3.2
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Ethan Nijmeh <ethannij@gmail.com>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/OpenTabletDriver-bin/Manifest2
-rw-r--r--x11-drivers/OpenTabletDriver-bin/OpenTabletDriver-bin-0.5.3.2.ebuild76
2 files changed, 78 insertions, 0 deletions
diff --git a/x11-drivers/OpenTabletDriver-bin/Manifest b/x11-drivers/OpenTabletDriver-bin/Manifest
index de81ddd4c..29761c132 100644
--- a/x11-drivers/OpenTabletDriver-bin/Manifest
+++ b/x11-drivers/OpenTabletDriver-bin/Manifest
@@ -1,2 +1,4 @@
DIST OpenTabletDriver-0.5.3.1.tar.gz 4040912 BLAKE2B 0d0a05cfc5ed0339e65e43acddf701f26b12021f82c9d69db494887b71032a64be0f740f03ba518dda09c9cff79fc97d8b1599fbef5aba694fd5ad1f184d3020 SHA512 88e84cd3ea1722e4e7a252bb371455e3eb61f8ddf30cfd83d24149b92c33cf18112cbbabb0b7b7d443060b7742ac1910bd046b5489d685c5f60156c214f56f19
+DIST OpenTabletDriver-0.5.3.2.tar.gz 4051840 BLAKE2B c50ef62fc8232a09123430f180b6a6d92b16faf42edf08fecb05f4a5a5096e67dfd8f86c10976938333818194dca77ec4af0a42d5d0752c981378a80b8152c6f SHA512 92b90526651b8201ef5c6e0063bb204889abb64929b606577e4d6be7896a14954fd5c4a7cc39197640152c38009f5af45919d5cf1fff5acdb7bed603204daac4
DIST OpenTabletDriver-source-0.5.3.1.tar.gz 174676 BLAKE2B a599aa070a8153ff9a63d0f4c717ac6bd62a03c0ca962612ad804908b686bbe80114c1b79a49fd43200963084ea6f68c5dbc349248509c4705792982c2e48f66 SHA512 55415e50559c6203f808c411a6111771d4639f3e1db67388da2f01068312afd744bd98a8c9fbf4d59f8ad94e1c71887dedcb032c354ec9d1f192fd091cd71426
+DIST OpenTabletDriver-source-0.5.3.2.tar.gz 174690 BLAKE2B 8ea7d235a4aaf4f605b152ec3971a44b556dd46981022ca5525f1a89307f4b444875fbe55377b37be99197e8c63eab4264c0343c3cecd893b2fefadd05a2110e SHA512 318ff65ed271ad7c2a1675b2079bca7ef4f6543025c155bcc1132b4ee8f26e7c85c1cdd363a1e7a4edba78ee234ed51b5d1841331a2bdeff05f3dd43e40af6e3
diff --git a/x11-drivers/OpenTabletDriver-bin/OpenTabletDriver-bin-0.5.3.2.ebuild b/x11-drivers/OpenTabletDriver-bin/OpenTabletDriver-bin-0.5.3.2.ebuild
new file mode 100644
index 000000000..df8188ad8
--- /dev/null
+++ b/x11-drivers/OpenTabletDriver-bin/OpenTabletDriver-bin-0.5.3.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 2019-2021 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-${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 dev-dotnet/dotnet-runtime-bin )
+"
+
+QA_PREBUILT="*"
+
+S="${WORKDIR}/${MY_PN}"
+src_install() {
+ local LP=opentabletdriver
+ local SP="otd"
+
+ cd "${S}" || die
+
+ # install -do root "${D}/usr/share/${PN}"
+
+ exeinto "/usr/share/${MY_PN}"
+ exeopts -o root -Dm755
+
+ for binary in *.dll *.json; do
+ # install -Dm 755 -o root "$binary" -t "${D}/usr/share/${PN}"
+ doexe "$binary"
+ #fowners root "$binary"
+ done
+
+ for bin in *.Daemon *.UX.Gtk *.Console; do
+ # install -Dm 755 -o root "$bin" -t "${D}/usr/share/${PN}"
+ doexe "$bin"
+ done
+
+ insinto "/usr/share/${MY_PN}"
+ doins -r "Configurations"
+
+ insinto "/lib/udev/rules.d"
+ doins -r "${S}/99-${LP}.rules"
+ #install -Dm 644 -o root "${S}/99-${LP}.rules" -t "${D}/usr/lib/udev/rules.d"
+ udevadm control --reload || die
+
+ cd "${FILESDIR}" || die
+ #install -Dm 755 -o root "${SP}" -t "${D}/usr/bin"
+ dobin "${SP}"
+ #install -Dm 755 -o root "${SP}-gui" -t "${D}/usr/bin"
+ 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
+}