from lib import cpp from lib.make import * version("2.70.0") description("A maintained, feature-rich and performance oriented, neofetch like system information tool.") maintainer("sisungo ") source_managed("github://fastfetch-cli/fastfetch#2.70.0") builddep("shortcut/c") builddep("shortcut/cmake") builddep("libwayland-dev @target") builddep("libvulkan-dev @target") builddep("libdrm-dev @target") builddep("glib-dev @target") builddep("libsqlite-dev @target") builddep("libegl-dev @target") builddep("libdbus-dev @target") builddep("libfreetype-dev @target") builddep("libz-dev @target") builddep("linux-dev @target") builddep("vulkan-headers @target") builddep("libopengl-dev @target") def build(): cpp.cmake([ f"-DCMAKE_INSTALL_PREFIX={get_prefix('fastfetch')}", "-DENABLE_VULKAN=ON", "-DENABLE_WAYLAND=ON", "-DENABLE_DRM=ON", "-DENABLE_GIO=ON", "-DENABLE_DBUS=ON", "-DENABLE_SQLITE3=ON", "-DENABLE_EGL=ON", "-DENABLE_FREETYPE=ON", "-DBINARY_LINK_TYPE=dlopen", ]) cpp.ninja() cpp.ninja_install() on_build(build) def pack(composer): composer.add("bin") composer.makedir("share") composer.add("share/fastfetch") package("fastfetch") dep("semi-libc @same-arch") on_pack(pack)