This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (34 loc) · 1.43 KB
/
Makefile
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
.ONESHELL:
SHELL = /bin/bash
INSTALL = /usr/bin/install
USERCONF = home/dotfiles
OWNER = -o fbristow -g fbristow
kodi:
apt install --yes software-properties-common
apt-add-repository --yes ppa:team-xbmc/unstable
apt update
apt install --yes kodi
lirc:
### the version of lirc that comes with bionic doesn't work with my
### machine or with my remote, so install the version of lirc from
### xenial which is known to be working
apt update
/usr/bin/debconf-set-selections system/lirc.debconf
apt install --yes lirc/xenial
apt-mark hold lirc
system-config:
$(INSTALL) -m 755 -d /opt/kodi
$(INSTALL) -m 755 -C system/opt/kodi/fix-ir.sh /opt/kodi/
$(INSTALL) -m 644 -C system/etc/systemd/system/fix-ir.service /etc/systemd/system/
/bin/systemctl enable fix-ir
$(INSTALL) -m 755 -d /etc/lightdm/lightdm.conf.d/
$(INSTALL) -m 644 -C system/etc/lightdm/lightdm.conf.d/10-xubuntu.conf /etc/lightdm/lightdm.conf.d/
$(INSTALL) -m 644 -C system/etc/X11/xorg.conf /etc/X11/
$(INSTALL) -m 755 -C system/etc/apt/sources.list.d/xenial.list /etc/apt/sources.list.d/
user-config:
$(INSTALL) -m 755 $(OWNER) -d ~/.config/autostart/
$(INSTALL) -m 644 $(OWNER) -C $(USERCONF)/config/autostart/Kodi.desktop ~/.config/autostart/
$(INSTALL) -m 755 $(OWNER) -d ~/.kodi/userdata/
$(INSTALL) -m 644 $(OWNER) -C $(USERCONF)/kodi/userdata/advancedsettings.xml ~/.kodi/userdata/
install: kodi lirc system-config user-config
.PHONY: kodi system-config user-config lirc