Changed the default of '/usr/lib' to /usr/local/lib'
This commit is contained in:
parent
b05a9d965f
commit
8762ddb6cf
2 changed files with 9 additions and 6 deletions
11
Makefile
11
Makefile
|
@ -6,8 +6,8 @@ CC = cc
|
||||||
DESTDIR = /usr
|
DESTDIR = /usr
|
||||||
|
|
||||||
ifeq ($(shell uname), Linux)
|
ifeq ($(shell uname), Linux)
|
||||||
PREFIX = bin
|
PREFIX = local/bin
|
||||||
LIBDIR = lib
|
LIBDIR = local/lib
|
||||||
MANDIR = share/man/man1
|
MANDIR = share/man/man1
|
||||||
else ifeq ($(shell uname), Darwin)
|
else ifeq ($(shell uname), Darwin)
|
||||||
PREFIX = local/bin
|
PREFIX = local/bin
|
||||||
|
@ -16,8 +16,8 @@ else ifeq ($(shell uname), Darwin)
|
||||||
else ifeq ($(shell uname), FreeBSD)
|
else ifeq ($(shell uname), FreeBSD)
|
||||||
CFLAGS += -D__FREEBSD__
|
CFLAGS += -D__FREEBSD__
|
||||||
CFLAGS_DEBUG += -D__FREEBSD__
|
CFLAGS_DEBUG += -D__FREEBSD__
|
||||||
PREFIX = bin
|
PREFIX = local/bin
|
||||||
LIBDIR = lib
|
LIBDIR = local/lib
|
||||||
MANDIR = share/man/man1
|
MANDIR = share/man/man1
|
||||||
else ifeq ($(shell uname), windows32)
|
else ifeq ($(shell uname), windows32)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
@ -53,6 +53,9 @@ termux_uninstall:
|
||||||
rm -rf $(DESTDIR)/data/data/com.termux/files$(PREFIX)/$(NAME)
|
rm -rf $(DESTDIR)/data/data/com.termux/files$(PREFIX)/$(NAME)
|
||||||
rm -rf $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/
|
rm -rf $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm $(NAME)
|
||||||
|
|
||||||
man:
|
man:
|
||||||
gzip --keep $(NAME).1
|
gzip --keep $(NAME).1
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ void print_image(struct info* user_info) {
|
||||||
if (strcmp(user_info->os_name, "android") == 0)
|
if (strcmp(user_info->os_name, "android") == 0)
|
||||||
sprintf(command, "viu -t -w 18 -h 8 /data/data/com.termux/files/usr/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for android
|
sprintf(command, "viu -t -w 18 -h 8 /data/data/com.termux/files/usr/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for android
|
||||||
else
|
else
|
||||||
sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for other systems
|
sprintf(command, "viu -t -w 18 -h 8 /usr/local/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for other systems
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
if (system(command) != 0) // if viu is not installed or the image is missing
|
if (system(command) != 0) // if viu is not installed or the image is missing
|
||||||
|
@ -632,7 +632,7 @@ void print_ascii(struct info* user_info) {
|
||||||
if (strcmp(user_info->os_name, "android") == 0)
|
if (strcmp(user_info->os_name, "android") == 0)
|
||||||
sprintf(ascii_file, "/data/data/com.termux/files/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
sprintf(ascii_file, "/data/data/com.termux/files/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
||||||
else
|
else
|
||||||
sprintf(ascii_file, "/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
sprintf(ascii_file, "/usr/local/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
||||||
|
|
||||||
file = fopen(ascii_file, "r");
|
file = fopen(ascii_file, "r");
|
||||||
if (!file) {
|
if (!file) {
|
||||||
|
|
Loading…
Reference in a new issue