@@ -2,16 +2,14 @@ DESTDIR = ./distrib
2
2
PREFIX = /usr
3
3
APPDIR = /opt/oomox
4
4
5
-
DISABLE_PLUGIN_MATERIA = 0
6
-
DISABLE_PLUGIN_ARC = 0
7
-
DISABLE_PLUGIN_SPOTIFY = 0
8
-
DISABLE_PLUGIN_IMPORT_IMAGE = 0
5
+
DEST_APPDIR = $(DESTDIR)$(APPDIR)
6
+
DEST_PLUGIN_DIR = $(DESTDIR)$(APPDIR)/plugins
7
+
DEST_PREFIX = $(DESTDIR)$(PREFIX)
9
8
10
9
11
-
.PHONY: install
12
-
install:
13
-
$(eval DEST_APPDIR := $(DESTDIR)$(APPDIR))
14
-
$(eval DEST_PREFIX := $(DESTDIR)$(PREFIX))
10
+
.PHONY: install_gui install_import_random install_theme_arc install_theme_oomox install_theme_materia install_export_spotify install_import_images install_plugin_base16 install_icons_archdroid install_icons_gnomecolors install_icons_numix install_icons_papirus install_icons_suruplus install_icons_suruplus_aspromauros
11
+
12
+
install_gui: install_import_random
15
13
$(eval PACKAGING_TMP_DIR := $(shell mktemp -d))
16
14
17
15
mkdir -p $(DEST_APPDIR)
@@ -23,52 +21,30 @@ install:
23
21
colors \
24
22
gui.sh \
25
23
oomox_gui \
26
-
plugins \
27
24
po \
28
25
po.mk \
29
26
terminal_templates \
30
27
$(DEST_APPDIR)/
31
28
32
-
$(RM) -r "$(DEST_APPDIR)/plugins/oomoxify/".git*
33
-
$(RM) -r "$(DEST_APPDIR)/plugins"/*/*/.git*
34
-
$(RM) -r "$(DEST_APPDIR)/plugins/theme_oomox/gtk-theme/".editorconfig
35
-
$(RM) -r "$(DEST_APPDIR)/plugins/theme_oomox/gtk-theme/".*.yml
36
-
$(RM) -r "$(DEST_APPDIR)/plugins/theme_oomox/gtk-theme/"{D,d}ocker*
37
-
$(RM) -r "$(DEST_APPDIR)/plugins/theme_oomox/gtk-theme/"maintenance*
38
-
$(RM) -r "$(DEST_APPDIR)/plugins/theme_oomox/gtk-theme/"screenshot*
39
-
$(RM) -r "$(DEST_APPDIR)/plugins/theme_oomox/gtk-theme/"test*
40
-
41
29
cp -prf \
42
30
packaging/ \
43
31
$(PACKAGING_TMP_DIR)/
44
-
45
-
ifeq ($(DISABLE_PLUGIN_MATERIA), 1)
46
-
$(RM) -r $(DEST_APPDIR)/plugins/theme_materia/
47
-
$(RM) $(PACKAGING_TMP_DIR)/packaging/bin/oomox-materia-cli
48
-
endif
49
-
ifeq ($(DISABLE_PLUGIN_ARC), 1)
50
-
$(RM) -r $(DEST_APPDIR)/plugins/theme_arc/
51
-
endif
52
-
ifeq ($(DISABLE_PLUGIN_SPOTIFY), 1)
53
-
$(RM) -r $(DEST_APPDIR)/plugins/oomoxify/
54
-
$(RM) $(PACKAGING_TMP_DIR)/packaging/bin/oomoxify-cli
55
-
endif
56
-
ifeq ($(DISABLE_PLUGIN_IMPORT_IMAGE), 1)
57
-
$(RM) -r $(DEST_APPDIR)/plugins/import_pil/
58
-
endif
59
-
60
32
sed -i -e 's|/opt/oomox/|$(APPDIR)/|g' $(PACKAGING_TMP_DIR)/packaging/bin/*
61
-
62
33
chmod a+x "$(PACKAGING_TMP_DIR)/packaging/bin/"*
63
-
install -Dp -m 755 --target-directory="$(DEST_PREFIX)/bin/" "$(PACKAGING_TMP_DIR)/packaging/bin/"*
34
+
35
+
install -d $(DEST_PREFIX)/bin/
36
+
install -Dp -m 755 "$(PACKAGING_TMP_DIR)/packaging/bin/oomox-gui" "$(DEST_PREFIX)/bin/"
64
37
65
38
install -d $(DEST_PREFIX)/share/applications/
66
39
install -Dp -m 644 "$(PACKAGING_TMP_DIR)/packaging/com.github.themix_project.Oomox.desktop" "$(DEST_PREFIX)/share/applications/"
67
40
68
41
install -d $(DEST_PREFIX)/share/appdata/
69
42
install -Dp -m 644 "$(PACKAGING_TMP_DIR)/packaging/com.github.themix_project.Oomox.appdata.xml" "$(DEST_PREFIX)/share/appdata/"
70
43
44
+
install -d $(DEST_PREFIX)/share/icons/hicolor/symbolic/apps/
71
45
install -Dp -m 644 "$(PACKAGING_TMP_DIR)/packaging/com.github.themix_project.Oomox-symbolic.svg" "$(DEST_PREFIX)/share/icons/hicolor/symbolic/apps/com.github.themix_project.Oomox-symbolic.svg"
46
+
47
+
install -d $(DEST_PREFIX)/share/icons/hicolor/scalable/apps/
72
48
install -Dp -m 644 "$(PACKAGING_TMP_DIR)/packaging/com.github.themix_project.Oomox.svg" "$(DEST_PREFIX)/share/icons/hicolor/scalable/apps/com.github.themix_project.Oomox.svg"
73
49
74
50
$(RM) -r $(PACKAGING_TMP_DIR)
@@ -77,4 +53,193 @@ endif
77
53
make -C $(DEST_APPDIR) -f po.mk install
78
54
rm $(DEST_APPDIR)/po.mk
79
55
56
+
57
+
install_theme_arc:
58
+
$(eval PLUGIN_NAME := "theme_arc")
59
+
60
+
mkdir -p $(DEST_PLUGIN_DIR)
61
+
cp -prf \
62
+
plugins/$(PLUGIN_NAME) \
63
+
$(DEST_PLUGIN_DIR)/
64
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
65
+
66
+
67
+
install_theme_oomox:
68
+
$(eval PLUGIN_NAME := "theme_oomox")
69
+
$(eval CLI_NAME := "oomox-cli")
70
+
$(eval PACKAGING_TMP_DIR := $(shell mktemp -d))
71
+
72
+
cp -prf \
73
+
packaging/ \
74
+
$(PACKAGING_TMP_DIR)/
75
+
sed -i -e 's|/opt/oomox/|$(APPDIR)/|g' $(PACKAGING_TMP_DIR)/packaging/bin/*
76
+
chmod a+x "$(PACKAGING_TMP_DIR)/packaging/bin/"*
77
+
install -d $(DEST_PREFIX)/bin/
78
+
install -Dp -m 755 "$(PACKAGING_TMP_DIR)/packaging/bin/$(CLI_NAME)" "$(DEST_PREFIX)/bin/"
79
+
80
+
mkdir -p $(DEST_PLUGIN_DIR)
81
+
cp -prf \
82
+
plugins/$(PLUGIN_NAME) \
83
+
$(DEST_PLUGIN_DIR)/
84
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)/gtk-theme/".editorconfig
85
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)/gtk-theme/".*.yml
86
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)/gtk-theme/"{D,d}ocker*
87
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)/gtk-theme/"maintenance*
88
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)/gtk-theme/"screenshot*
89
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)/gtk-theme/"test*
90
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
91
+
92
+
93
+
install_theme_materia:
94
+
$(eval PLUGIN_NAME := "theme_materia")
95
+
$(eval CLI_NAME := "oomox-materia-cli")
96
+
$(eval PACKAGING_TMP_DIR := $(shell mktemp -d))
97
+
98
+
cp -prf \
99
+
packaging/ \
100
+
$(PACKAGING_TMP_DIR)/
101
+
sed -i -e 's|/opt/oomox/|$(APPDIR)/|g' $(PACKAGING_TMP_DIR)/packaging/bin/*
102
+
chmod a+x "$(PACKAGING_TMP_DIR)/packaging/bin/"*
103
+
install -d $(DEST_PREFIX)/bin/
104
+
install -Dp -m 755 "$(PACKAGING_TMP_DIR)/packaging/bin/$(CLI_NAME)" "$(DEST_PREFIX)/bin/"
105
+
106
+
mkdir -p $(DEST_PLUGIN_DIR)
107
+
cp -prf \
108
+
plugins/$(PLUGIN_NAME) \
109
+
$(DEST_PLUGIN_DIR)/
110
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
111
+
112
+
113
+
install_export_spotify:
114
+
$(eval PLUGIN_NAME := "oomoxify")
115
+
$(eval CLI_NAME := "oomoxify-cli")
116
+
$(eval PACKAGING_TMP_DIR := $(shell mktemp -d))
117
+
118
+
cp -prf \
119
+
packaging/ \
120
+
$(PACKAGING_TMP_DIR)/
121
+
sed -i -e 's|/opt/oomox/|$(APPDIR)/|g' $(PACKAGING_TMP_DIR)/packaging/bin/*
122
+
chmod a+x "$(PACKAGING_TMP_DIR)/packaging/bin/"*
123
+
install -d $(DEST_PREFIX)/bin/
124
+
install -Dp -m 755 "$(PACKAGING_TMP_DIR)/packaging/bin/$(CLI_NAME)" "$(DEST_PREFIX)/bin/"
125
+
126
+
mkdir -p $(DEST_PLUGIN_DIR)
127
+
cp -prf \
128
+
plugins/$(PLUGIN_NAME) \
129
+
$(DEST_PLUGIN_DIR)/
130
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/.git*
131
+
132
+
133
+
install_import_random:
134
+
$(eval PLUGIN_NAME := "import_random")
135
+
136
+
mkdir -p $(DEST_PLUGIN_DIR)
137
+
cp -prf \
138
+
plugins/$(PLUGIN_NAME) \
139
+
$(DEST_PLUGIN_DIR)/
140
+
141
+
142
+
install_import_images:
143
+
$(eval PLUGIN_NAME := "import_pil")
144
+
145
+
mkdir -p $(DEST_PLUGIN_DIR)
146
+
cp -prf \
147
+
plugins/$(PLUGIN_NAME) \
148
+
$(DEST_PLUGIN_DIR)/
149
+
150
+
151
+
install_plugin_base16:
152
+
$(eval PLUGIN_NAME := "base16")
153
+
154
+
mkdir -p $(DEST_PLUGIN_DIR)
155
+
cp -prf \
156
+
plugins/$(PLUGIN_NAME) \
157
+
$(DEST_PLUGIN_DIR)/
158
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
159
+
160
+
161
+
install_icons_archdroid:
162
+
$(eval PLUGIN_NAME := "icons_archdroid")
163
+
$(eval CLI_NAME := "oomox-archdroid-icons-cli")
164
+
$(eval PACKAGING_TMP_DIR := $(shell mktemp -d))
165
+
166
+
cp -prf \
167
+
packaging/ \
168
+
$(PACKAGING_TMP_DIR)/
169
+
sed -i -e 's|/opt/oomox/|$(APPDIR)/|g' $(PACKAGING_TMP_DIR)/packaging/bin/*
170
+
chmod a+x "$(PACKAGING_TMP_DIR)/packaging/bin/"*
171
+
install -d $(DEST_PREFIX)/bin/
172
+
install -Dp -m 755 "$(PACKAGING_TMP_DIR)/packaging/bin/$(CLI_NAME)" "$(DEST_PREFIX)/bin/"
173
+
174
+
mkdir -p $(DEST_PLUGIN_DIR)
175
+
cp -prf \
176
+
plugins/$(PLUGIN_NAME) \
177
+
$(DEST_PLUGIN_DIR)/
178
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
179
+
180
+
181
+
install_icons_gnomecolors:
182
+
$(eval PLUGIN_NAME := "icons_gnomecolors")
183
+
$(eval CLI_NAME := "oomox-gnome-colors-icons-cli")
184
+
$(eval PACKAGING_TMP_DIR := $(shell mktemp -d))
185
+
186
+
cp -prf \
187
+
packaging/ \
188
+
$(PACKAGING_TMP_DIR)/
189
+
sed -i -e 's|/opt/oomox/|$(APPDIR)/|g' $(PACKAGING_TMP_DIR)/packaging/bin/*
190
+
chmod a+x "$(PACKAGING_TMP_DIR)/packaging/bin/"*
191
+
install -d $(DEST_PREFIX)/bin/
192
+
install -Dp -m 755 "$(PACKAGING_TMP_DIR)/packaging/bin/$(CLI_NAME)" "$(DEST_PREFIX)/bin/"
193
+
194
+
mkdir -p $(DEST_PLUGIN_DIR)
195
+
cp -prf \
196
+
plugins/$(PLUGIN_NAME) \
197
+
$(DEST_PLUGIN_DIR)/
198
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
199
+
200
+
201
+
install_icons_numix:
202
+
$(eval PLUGIN_NAME := "icons_numix")
203
+
204
+
mkdir -p $(DEST_PLUGIN_DIR)
205
+
cp -prf \
206
+
plugins/$(PLUGIN_NAME) \
207
+
$(DEST_PLUGIN_DIR)/
208
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
209
+
210
+
211
+
install_icons_papirus:
212
+
$(eval PLUGIN_NAME := "icons_papirus")
213
+
214
+
mkdir -p $(DEST_PLUGIN_DIR)
215
+
cp -prf \
216
+
plugins/$(PLUGIN_NAME) \
217
+
$(DEST_PLUGIN_DIR)/
218
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
219
+
220
+
221
+
install_icons_suruplus:
222
+
$(eval PLUGIN_NAME := "icons_suruplus")
223
+
224
+
mkdir -p $(DEST_PLUGIN_DIR)
225
+
cp -prf \
226
+
plugins/$(PLUGIN_NAME) \
227
+
$(DEST_PLUGIN_DIR)/
228
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
229
+
230
+
231
+
install_icons_suruplus_aspromauros:
232
+
$(eval PLUGIN_NAME := "icons_suruplus_aspromauros")
233
+
234
+
mkdir -p $(DEST_PLUGIN_DIR)
235
+
cp -prf \
236
+
plugins/$(PLUGIN_NAME) \
237
+
$(DEST_PLUGIN_DIR)/
238
+
$(RM) -r "$(DEST_PLUGIN_DIR)/$(PLUGIN_NAME)"/*/.git*
239
+
240
+
241
+
.PHONY: install
242
+
install: install_gui install_theme_arc install_theme_oomox install_theme_materia install_export_spotify install_import_images install_plugin_base16 install_icons_archdroid install_icons_gnomecolors install_icons_numix install_icons_papirus install_icons_suruplus install_icons_suruplus_aspromauros
243
+
244
+
.PHONY: all
80
245
all: install
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4