-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.py
63 lines (40 loc) · 1.34 KB
/
packages.py
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
56
57
58
59
60
61
62
63
from base_packages import Package, AURPackage, CustomPackage
class oh_my_zsh(CustomPackage):
name = "oh-my-zsh"
requirements = ["zsh"]
def install(self):
pass
class zsh(Package):
extras = ["oh-my-zsh", "powerlevel10k"]
config_files = ["welcome", "base", "util", "aliases", "keybinds"]
output_location = "~/.zshrc"
class reflector(Package):
output_location = "/etc/xdg/reflector/reflector.conf"
class yay(CustomPackage):
requirements = ["git", "base_devel"]
def install(self):
self.run_cmd("git clone https://aur.archlinux.org/yay-bin.git")
self.run_cmd("cd yay-bin")
self.run_cmd("makepkg -si")
self.run_cmd("cd ..")
self.run_cmd("rm -rf yay-bin")
class powerlevel10k(AURPackage):
requirements = ["zsh"]
config_file = ["p10k.zshrc"]
config_directory = "zsh"
def install(self):
pass
class git(Package):
pass
class vivaldi(Package):
post_requirements = ["vivaldi_ffmepg_codecs", "vivaldi_update_ffmepg_hook"]
class vivaldi_ffmepg_codecs(AURPackage):
requirements = [vivaldi]
class vivaldi_update_ffmepg_hook(AURPackage):
requirements = [vivaldi]
class docker(Package):
# TODO: add user to group docker
extras = ["docker-compose"]
def check_installed(self):
#TODO: sudo docker run hello-world
pass