blob: cf1440d5bdf7c10fe31f40d33a1d832faeb8044e (
plain)
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
|
# Maintainer: Linus Dierheimer <Linus@Dierheimer.de>
pkgname=fastfetch-git
pkgver=1.2.3.r5.g5346104
pkgrel=1
pkgdesc="Like neofetch, but much faster because written in c"
arch=("x86_64" "i686" "pentium4" "armv5" "armv6h" "armv7h" "aarch64")
url="https://github.com/LinusDierheimer/fastfetch"
license=("MIT")
depends=()
makedepends=(
"git"
"cmake"
"pciutils"
"vulkan-headers"
"vulkan-icd-loader"
"wayland"
"libxcb"
"libxrandr" # Depends on libX11, which headers are also needed
"dconf" # Depends on glib2, which headers are also needed
"imagemagick"
"dbus"
"xfconf"
# "rpm-tools"
)
optdepends=(
"pciutils: GPU output"
"vulkan-icd-loader: GPU fallback"
"wayland: Improved Wayland support (resolution + multi monitor)"
"libxcb: Improved X11 support (resolution + multi monitor)"
"libx11: Improved X11 support (resolution)"
"libxrandr: Improved X11 support (resolution + multi monitor)"
"glib2: Output for values that are only stored in GSettings"
"dconf: Output for values that are only stored in DConf"
"dbus: Media player and song output"
"imagemagick: Image output using sixel"
"xfconf: XFWM theme + xfce-terminal font"
# "rpm-tools: rpm package count"
)
_provides_and_conflicts=(
"fastfetch"
)
provides=("${_provides_and_conflicts[@]}")
conflicts=("${_provides_and_conflicts[@]}")
_src_dir="${pkgname}"
source=("${_src_dir}::git+https://github.com/LinusDierheimer/fastfetch.git")
sha256sums=("SKIP")
_build_dir="build"
pkgver() {
cd "${_src_dir}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B "${_build_dir}" -S "${_src_dir}" -Wno-dev
cmake --build "${_build_dir}" --target fastfetch --target flashfetch
}
package() {
cmake --install "${_build_dir}" --prefix "${pkgdir}/usr"
}
|