forked from mckset/KD100
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added K10 Mini from HUION * Added udev-Rules for deb package * Deleted Make for install * Added binarys to gitignore
- Loading branch information
Showing
6 changed files
with
87 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
KD100 | ||
*.deb | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
FLAGS = -lusb-1.0 | ||
USER = $(shell id -u) | ||
DIR = $(shell pwd) | ||
HOME = "/home/"$(shell logname) | ||
FLAGS = -lusb-1.0 -lX11 -lwayland-client | ||
|
||
install: | ||
@if [ "${USER}" = "0" ]; then\ | ||
${CC} KD100.c ${FLAGS} -o /bin/KD100;\ | ||
mkdir "${HOME}/.config/KD100";\ | ||
cp "default.cfg" "${HOME}/.config/KD100/";\ | ||
chmod a+wr "${HOME}/.config/KD100/default.cfg";\ | ||
echo "Default config file is located in: ${HOME}/.config/KD100/";\ | ||
else\ | ||
${CC} KD100.c ${FLAGS} -o KD100;\ | ||
fi | ||
|
||
|
||
${CC} KD100.c ${FLAGS} -o KD100; | ||
clean: | ||
rm -f KD100 | ||
rm -f ./debian-dpkg/usr/local/bin/KD100 | ||
rm -f huion-k20-kd100.deb | ||
deb: | ||
${CC} KD100.c ${FLAGS} -o ./debian-dpkg/usr/local/bin/KD100; | ||
dpkg-deb --build debian-dpkg huion-k20-kd100.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Package: huion-kd100-k20 | ||
Version: 1.4.1 | ||
Maintainer: mckset | ||
Architecture: i386 | ||
Description: Huion KD100 / K20 Linux Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
udevadm control --reload | ||
udevadm trigger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SUBSYSTEM=="usb",ATTRS{idVendor}=="256c",ATTRS{idProduct}=="0069",MODE="0666" | ||
SUBSYSTEM=="usb",ATTRS{idVendor}=="256c",ATTRS{idProduct}=="006d",MODE="0666" |