-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (58 loc) · 1.77 KB
/
Copy pathMakefile
File metadata and controls
69 lines (58 loc) · 1.77 KB
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
64
65
66
67
68
69
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2024 OpenWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=fastfetch
PKG_VERSION:=2.69.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/fastfetch-cli/fastfetch/tar.gz/$(PKG_VERSION)?
PKG_HASH:=d0e42faf307e39e7b531d632745a56e4eb558a6545f557280099c622562355ee
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=ntbowen <ntbowen2001@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/fastfetch
SECTION:=utils
CATEGORY:=Utilities
TITLE:=A fast system information tool
URL:=https://github.com/fastfetch-cli/fastfetch
DEPENDS:=+libpci +libcap +libudev-zero +libpthread
endef
define Package/fastfetch/description
fastfetch is a neofetch-like tool for fetching system information and displaying them
in a pretty way. It is written in C and designed to be highly customizable and
extremely fast.
endef
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_VULKAN=OFF \
-DENABLE_WAYLAND=OFF \
-DENABLE_X11=OFF \
-DENABLE_XCB=OFF \
-DENABLE_GIO=OFF \
-DENABLE_CHAFA=OFF \
-DENABLE_ZLIB=OFF \
-DENABLE_IMAGEMAGICK6=OFF \
-DENABLE_IMAGEMAGICK7=OFF \
-DENABLE_OPENCL=OFF \
-DENABLE_CUDA=OFF \
-DENABLE_NVML=OFF \
-DENABLE_SQLITE3=OFF \
-DENABLE_RPM=OFF \
-DENABLE_DBUS=OFF \
-DENABLE_XFCONF=OFF \
-DENABLE_LIBPCI=ON \
-DENABLE_THREADS=OFF \
-DENABLE_DIRECTX=OFF \
-DENABLE_OPENGL=OFF
define Package/fastfetch/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fastfetch $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flashfetch $(1)/usr/bin/ || true
endef
$(eval $(call BuildPackage,fastfetch))