diff --git a/srcpkgs/LACT/files/lact/run b/srcpkgs/LACT/files/lact/run new file mode 100755 index 00000000000..74e0a5ebbd8 --- /dev/null +++ b/srcpkgs/LACT/files/lact/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec chpst -n -10 lact daemon diff --git a/srcpkgs/LACT/template b/srcpkgs/LACT/template new file mode 100644 index 00000000000..249d54466e0 --- /dev/null +++ b/srcpkgs/LACT/template @@ -0,0 +1,33 @@ +# Template file for 'LACT' +pkgname=LACT +version=0.7.0 +revision=1 +build_style=cargo +make_check_args="-- --skip app::root_stack::thermals_page::fan_curve_frame::tests::set_get_curve" +hostmakedepends="pkg-config blueprint-compiler gtk4-devel llvm19-devel" +makedepends="gtk4-devel" +short_desc="Linux AMDGPU Control Application" +maintainer="Daniel Martinez " +license="MIT" +homepage="https://github.com/ilya-zlobintsev/LACT" +distfiles="https://github.com/ilya-zlobintsev/LACT/archive/refs/tags/v${version}.tar.gz" +checksum=7780b4b528b02baaebf6bd87106267037b0a2011817c9932f29b6ccfb6357d8d +make_check=ci-skip # detects intel GPU in github CI pipeline + +if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then + broken="libdrm_amdgpu_sys crate only supports 64bit" +fi + +do_install() { + + vsv lact + + vbin target/$RUST_TARGET/release/lact + + vinstall res/lactd.service 644 usr/lib/systemd/system + vinstall res/io.github.lact-linux.desktop 644 usr/share/applications + vinstall res/io.github.lact-linux.png 644 usr/share/pixmaps + vinstall res/io.github.lact-linux.svg 644 usr/share/icons/hicolor/scalable/apps + + vlicense LICENSE +}