lfp


Logs | Files | README | LICENSE | GitLab


1
commit b876ba1f89417863d3d923921bed0b31145ab207
2
Author: Connor Etherington <[email protected]>
3
Date:   Tue May 16 19:48:27 2023 +0200
4
5
    Auto-Commit Update 16.05.2023 - 19:48:27
6
---
7
 Makefile | 25 +++++++++++++------------
8
 1 file changed, 13 insertions(+), 12 deletions(-)
9
10
diff --git a/Makefile b/Makefile
11
index f92c4cc..d54d035 100644
12
--- a/Makefile
13
+++ b/Makefile
14
@@ -26,9 +26,10 @@ all: info lfpreviewer lfp cd-on-exit
15
 
16
 lfpreviewer:
17
 	@echo -e "\n\e[1;33m[+]\e[0m Installing ${PREVIEWER}...\n"
18
-	@cd ${PREVIEWER} && ./setup.py install && cd .. || true
19
 	@rm -rf ${PREVIEWER}/build ${PREVIEWER}/${PREVIEWER}.egg-info ${PREVIEWER}/dist
20
-	@type python3 >/dev/null 2>&1 || echo -e "\n\e[1;31m[-]\e[0m Python is not installed on the system. Skipping ${PREVIEWER} installation, media previews will not work."
21
+	@which python3 >/dev/null 2>&1 && which pip && sudo ${PACKAGE_MANAGER} -Qq libxres1 >/dev/null 2>&1 || sudo ${PACKAGE_MANAGER} -Syy python3 python-pip libxres
22
+	@python3 -m pip install setuptools
23
+	@cd ${PREVIEWER} && ./setup.py install && cd .. || true
24
 	@type lfpreviewer >/dev/null 2>&1 || echo -e "\n\e[1;31m[-]\e[0m Please ensure you have sufficient premission to install ${PREVIEWER}."
25
 
26
 lfp:
27
@@ -45,16 +46,16 @@ install: all
28
 
29
 clean:
30
 	@echo -e "\n\e[1;33m[+]\e[0m Cleaning up..."
31
-	@rm -rf ${PKGDIR}/lib/python3.*/site-packages/${PREVIEWER}*
32
-	@rm -rf ${PKGDIR}/usr/bin/${PREVIEWER}
33
-	@rm -rf ${PKGDIR}/usr/share/${PKG}
34
-	@rm -rf ${PKGDIR}/usr/bin/${PKG}
35
-	@rm -rf ${PKGDIR}/usr/bin/${PKG}cd
36
-	@rm -rf ${PKGDIR}/usr/bin/cleaner
37
-	@rm -rf ${PKGDIR}/usr/bin/scope
38
-	@rm -rf ${PKGDIR}/usr/share/licenses/${PKG}
39
-	@rm -rf ${PKGDIR}/usr/share/doc/${PKG}
40
-	@rm -rf ${PKGDIR}/usr/share/man/man1/${PKG}.1.gz
41
+	rm -rf ${PKGDIR}/lib/python3.*/site-packages/${PREVIEWER}*
42
+	rm -rf ${PKGDIR}/usr/bin/${PREVIEWER}
43
+	rm -rf ${PKGDIR}/usr/share/${PKG}
44
+	rm -rf ${PKGDIR}/usr/bin/${PKG}
45
+	rm -rf ${PKGDIR}/usr/bin/${PKG}cd
46
+	rm -rf ${PKGDIR}/usr/bin/cleaner
47
+	rm -rf ${PKGDIR}/usr/bin/scope
48
+	rm -rf ${PKGDIR}/usr/share/licenses/${PKG}
49
+	rm -rf ${PKGDIR}/usr/share/doc/${PKG}
50
+	rm -rf ${PKGDIR}/usr/share/man/man1/${PKG}.1.gz
51
 	@echo -e "\n\e[1;32m[+]\e[0m lfp successfully uninstalled"
52
 
53
 info: