-
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.
- Loading branch information
Showing
6 changed files
with
68 additions
and
5 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 |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
go.work | ||
WiiWill | ||
fyne-cross | ||
pkg/WiiWill.tar.xz |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# See https://stackoverflow.com/questions/11939255/writing-to-dev-uinput-on-ubuntu-12-04 | ||
|
||
KERNEL=="uinput", TAG+="uaccess" |
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,34 @@ | ||
# If PREFIX isn't provided, we check for $(DESTDIR)/usr/local and use that if it exists. | ||
# Otherwice we fall back to using /usr. | ||
|
||
LOCAL != test -d $(DESTDIR)/usr/local && echo -n "/local" || echo -n "" | ||
LOCAL ?= $(shell test -d $(DESTDIR)/usr/local && echo "/local" || echo "") | ||
PREFIX ?= /usr$(LOCAL) | ||
|
||
Name := "WiiWill" | ||
Exec := "WiiWill" | ||
Icon := "WiiWill.png" | ||
|
||
default: | ||
# User install | ||
# Run "make user-install" to install in ~/.local/ | ||
# Run "make user-uninstall" to uninstall from ~/.local/ | ||
# | ||
# System install | ||
# Run "sudo make install" to install the application. | ||
# Run "sudo make uninstall" to uninstall the application. | ||
|
||
install: | ||
install -Dm00644 usr/local/share/applications/$(Name).desktop $(DESTDIR)$(PREFIX)/share/applications/$(Name).desktop | ||
install -Dm00755 usr/local/bin/$(Exec) $(DESTDIR)$(PREFIX)/bin/$(Exec) | ||
install -Dm00644 usr/local/share/pixmaps/$(Icon) $(DESTDIR)$(PREFIX)/share/pixmaps/$(Icon) | ||
install -Dm00644 etc/modules-load.d/uinput.conf /etc/modules-load.d/uinput.conf | ||
install -Dm00644 etc/udev/rules.d/49-wiiwill.rules /etc/udev/rules.d/49-wiiwill.rules | ||
udevadm control --reload-rules | ||
modprobe uinput | ||
uninstall: | ||
-rm $(DESTDIR)$(PREFIX)/share/applications/$(Name).desktop | ||
-rm $(DESTDIR)$(PREFIX)/bin/$(Exec) | ||
-rm $(DESTDIR)$(PREFIX)/share/pixmaps/$(Icon) | ||
-rm /etc/modules-load.d/uinput.conf | ||
-rm /etc/udev/rules.d/49-wiiwill.rules |
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,23 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname $0)"/.. | ||
repodir="$PWD" | ||
cd - | ||
tarfile="WiiWill.tar.xz" | ||
|
||
cd "$repodir" | ||
make clean | ||
make tar | ||
|
||
cd "$repodir"/fyne-cross/dist/linux-amd64/ | ||
tar -xvf "$tarfile" | ||
rm "$tarfile" | ||
|
||
mkdir -p etc/modules-load.d | ||
mkdir -p etc/udev/rules.d | ||
cp "$repodir"/pkg/uinput.conf etc/modules-load.d | ||
cp "$repodir"/pkg/49-wiiwill.rules etc/udev/rules.d | ||
cp "$repodir"/pkg/Makefile . | ||
|
||
tar -cJvf "$repodir/pkg/$tarfile" * | ||
cd "$(dirname $0)" |
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 @@ | ||
uinput |