summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoeLava2020-01-02 14:52:41 +0700
committerMoeLava2020-01-02 14:52:41 +0700
commit3569d4ff1d6833a254d51d9c4542791b6a349da5 (patch)
tree56174b65d69a660f1c9be7f9f09fcc43aea56856
downloadaur-3569d4ff1d6833a254d51d9c4542791b6a349da5.tar.gz
Initial Commit
-rw-r--r--.SRCINFO31
-rw-r--r--30-opentabletdriver.rules70
-rw-r--r--OpenTabletDriver.desktop10
-rw-r--r--PKGBUILD67
-rw-r--r--opentabletdriver3
-rw-r--r--opentabletdriver.install5
6 files changed, 186 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e46102a56b0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = opentabletdriver-git
+ pkgdesc = A cross-platform open source tablet driver
+ pkgver = r302.5e922de
+ pkgrel = 1
+ url = https://github.com/InfinityGhost/OpenTabletDriver
+ install = opentabletdriver.install
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = dotnet-sdk>=3.0
+ depends = dotnet-runtime>=3.0
+ depends = dotnet-host>=3.0
+ depends = fontconfig
+ depends = libxrandr
+ depends = libx11
+ depends = libxtst
+ provides = opentabletdriver
+ conflicts = opentabletdriver
+ source = git+https://github.com/InfinityGhost/OpenTabletDriver
+ source = 30-opentabletdriver.rules
+ source = opentabletdriver
+ source = opentabletdriver.install
+ source = OpenTabletDriver.desktop
+ sha256sums = SKIP
+ sha256sums = f0eed4291884647da3b685e0f8d0e44ee2336892be9cb632dc21e018740d1d66
+ sha256sums = f9f5ac5d01b9820b88dc8701da7be3f705270537c2b5dc20a82744c216732a97
+ sha256sums = 304ec78284e99395b3091923da540af3a1826205663aa8fd2d52deb64f852166
+ sha256sums = f837c3c8903cdd88252cb4faeed5cae8f73451dfaa667bbc4a39ebe713acf0d4
+
+pkgname = opentabletdriver-git
+
diff --git a/30-opentabletdriver.rules b/30-opentabletdriver.rules
new file mode 100644
index 00000000000..d6cec5bb6cb
--- /dev/null
+++ b/30-opentabletdriver.rules
@@ -0,0 +1,70 @@
+# Gaomon S620
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006d", MODE=="0660", GROUP=="users"
+# Huion H420
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006e", MODE=="0660", GROUP=="users"
+# Huion HS64
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006d", MODE=="0660", GROUP=="users"
+# Wacom CTE-440
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0015", MODE=="0660", GROUP=="users"
+# Wacom CTH-470
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00de", MODE=="0660", GROUP=="users"
+# Wacom CTH-480
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0302", MODE=="0660", GROUP=="users"
+# Wacom CTH-490
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="033c", MODE=="0660", GROUP=="users"
+# Wacom CTH-670
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00df", MODE=="0660", GROUP=="users"
+# Wacom CTH-680
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0303", MODE=="0660", GROUP=="users"
+# Wacom CTH-690
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="033e", MODE=="0660", GROUP=="users"
+# Wacom CTL-4100 Bluetooth
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0377", MODE=="0660", GROUP=="users"
+# Wacom CTL-4100
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0374", MODE=="0660", GROUP=="users"
+# Wacom CTL-470
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00dd", MODE=="0660", GROUP=="users"
+# Wacom CTL-471
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0300", MODE=="0660", GROUP=="users"
+# Wacom CTL-472
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="037a", MODE=="0660", GROUP=="users"
+# Wacom CTL-480
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="030e", MODE=="0660", GROUP=="users"
+# Wacom CTL-490
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="033b", MODE=="0660", GROUP=="users"
+# Wacom CTL-6100
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0378", MODE=="0660", GROUP=="users"
+# Wacom CTL-671
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0301", MODE=="0660", GROUP=="users"
+# Wacom CTL-672
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="037b", MODE=="0660", GROUP=="users"
+# Wacom CTL-680
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0323", MODE=="0660", GROUP=="users"
+# Wacom CTL-690
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="033d", MODE=="0660", GROUP=="users"
+# Wacom PTH-451
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0314", MODE=="0660", GROUP=="users"
+# Wacom PTH-660 Bluetooth
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0360", MODE=="0660", GROUP=="users"
+# Wacom PTH-660
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0357", MODE=="0660", GROUP=="users"
+# Wacom PTH-850
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0028", MODE=="0660", GROUP=="users"
+# XP-Pen Deco 01 v2
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0902", MODE=="0660", GROUP=="users"
+# XP-Pen Deco 01
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0042", MODE=="0660", GROUP=="users"
+# XP-Pen Deco 02
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0803", MODE=="0660", GROUP=="users"
+# XP-Pen G430S
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0075", MODE=="0660", GROUP=="users"
+# XP-Pen G430S_B
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0913", MODE=="0660", GROUP=="users"
+# XP-Pen G540 Pro
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0061", MODE=="0660", GROUP=="users"
+# XP-Pen G640
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0094", MODE=="0660", GROUP=="users"
+# XP-Pen G640s
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0906", MODE=="0660", GROUP=="users"
+# XP-Pen Star 03v2
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28bd", ATTRS{idProduct}=="0907", MODE=="0660", GROUP=="users" \ No newline at end of file
diff --git a/OpenTabletDriver.desktop b/OpenTabletDriver.desktop
new file mode 100644
index 00000000000..5022f617605
--- /dev/null
+++ b/OpenTabletDriver.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=0.1.0-rc1
+Name=OpenTabletDriver
+Exec=/usr/bin/opentabletdriver
+Icon=/usr/share/OpenTabletDriver/Assets/otd.png
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Accessories;
+X-Desktop-File-Install-Version=0.15 \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37e9632faf5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: MoeLava <me@lava.moe>
+pkgname=opentabletdriver-git
+_pkgname=OpenTabletDriver
+_lpkgname=opentabletdriver
+pkgver=r302.5e922de
+pkgrel=1
+pkgdesc="A cross-platform open source tablet driver"
+arch=('x86_64')
+url="https://github.com/InfinityGhost/OpenTabletDriver"
+license=('GPL')
+depends=('dotnet-runtime>=3.0' 'dotnet-host>=3.0' 'fontconfig' 'libxrandr' 'libx11' 'libxtst')
+makedepends=('git' 'dotnet-sdk>=3.0')
+provides=("opentabletdriver")
+conflicts=("opentabletdriver")
+install="$_lpkgname.install"
+source=('git+https://github.com/InfinityGhost/OpenTabletDriver'
+ "30-$_lpkgname.rules"
+ "$_lpkgname"
+ "$_lpkgname.install"
+ "$_pkgname.desktop")
+
+sha256sums=('SKIP'
+ 'f0eed4291884647da3b685e0f8d0e44ee2336892be9cb632dc21e018740d1d66'
+ 'f9f5ac5d01b9820b88dc8701da7be3f705270537c2b5dc20a82744c216732a97'
+ '304ec78284e99395b3091923da540af3a1826205663aa8fd2d52deb64f852166'
+ 'f837c3c8903cdd88252cb4faeed5cae8f73451dfaa667bbc4a39ebe713acf0d4')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+}
+
+build() {
+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
+ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
+ cd "$srcdir/$_pkgname"
+
+ dotnet publish OpenTabletDriver \
+ --configuration Release \
+ --runtime linux-x64 \
+ --self-contained false \
+ --output "./$_pkgname/out" \
+ /p:PublishTrimmed=false
+}
+
+package() {
+ cd "$srcdir"
+
+ install -do root "$pkgdir/usr/share/$_pkgname"
+
+ cd "$srcdir/$_pkgname/$_pkgname/out"
+ for binary in *.so *.dll *.json *.pdb; do
+ install -Dm 755 -o root "$binary" -t "$pkgdir/usr/share/$_pkgname"
+ done
+ cd "$srcdir"
+
+ install -Dm 644 -o root "$srcdir/$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 -o root "30-$_lpkgname.rules" -t "$pkgdir/usr/lib/udev/rules.d"
+ install -Dm 644 -o root "$_pkgname.desktop" -t "$pkgdir/usr/share/applications"
+
+ install -Dm 755 -o root "$srcdir/$_pkgname/$_pkgname/out/OpenTabletDriver" -t "$pkgdir/usr/share/$_pkgname"
+ install -Dm 755 -o root "$_lpkgname" -t "$pkgdir/usr/bin"
+} \ No newline at end of file
diff --git a/opentabletdriver b/opentabletdriver
new file mode 100644
index 00000000000..280075ba56e
--- /dev/null
+++ b/opentabletdriver
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/OpenTabletDriver
+./OpenTabletDriver "$@" \ No newline at end of file
diff --git a/opentabletdriver.install b/opentabletdriver.install
new file mode 100644
index 00000000000..e9e8007b5cd
--- /dev/null
+++ b/opentabletdriver.install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+post_install() {
+ udevadm control --reload-rules
+} \ No newline at end of file