-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·55 lines (44 loc) · 1.32 KB
/
install.sh
File metadata and controls
executable file
·55 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
dependencies=(
libusbx libusbx-devel hidapi hidapi-devel
)
dnf -y install ${dependencies[*]}
CACHEDIR="/var/cache/fedy/dactl-mcc"
mkdir -p $CACHEDIR
cd $CACHEDIR
# Driver and dependency installation
git clone https://github.com/wjasper/Linux_Drivers.git
cp Linux_Drivers/61-mcc.rules /etc/udev/rules.d/
udevadm control --reload && udevadm trigger
cd Linux_Drivers/USB/mcc-libusb
make && make install
cd $CACHEDIR
git clone git://github.com/signal11/hidapi.git
cd hidapi
./bootstrap
./configure
make && sudo make install
cd $CACHEDIR
git clone https://github.com/coanda/mcc-vapi.git
cd mcc-vapi
cp libmccusb.{deps,vapi} /usr/share/vala/vapi/
cp libmccusb.pc /usr/share/pkgconfig/
# Dactl configuration setup
cd $CACHEDIR
git clone https://github.com/coanda/dactl-mcc-config.git
mkdir /usr/local/share/dactl
chown -R `whoami`.$(id -gn `whoami`) /usr/local/share/dactl
chmod -R g+w /usr/share/dactl
cp dactl-mcc-config/dactl.xml /usr/local/share/dactl/
# Dactl plugin installation
cd $CACHEDIR
git clone https://github.com/coanda/dactl-mcc-plugin.git
cd dactl-mcc-plugin
cp vapi/hidapi.vapi /usr/share/vala/vapi/
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/ ./autogen.sh
make && make install
sudo mkdir -p /srv/data/dactl
sudo chown -R `whoami`.$(id -gn `whoami`) /srv/data/dactl
chmod -R g+w /srv/data/dactl
# Post install
ldconfig