add lact-git

This commit is contained in:
joborun linux 2024-03-05 02:58:13 +02:00
parent 5b4c62f581
commit 3e7b86188b
7 changed files with 126 additions and 0 deletions

58
lact-git/PKGBUILD Normal file
View File

@ -0,0 +1,58 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=lact-git
pkgver=0.5.4rc
_pkgver=r479.72d6556
pkgrel=02
pkgdesc="AMDGPU Controller application (git version) March 05 2024 w/o systemd"
url="https://github.com/ilya-zlobintsev/LACT"
makedepends=("rust" "git" "make" "clang" "blueprint-compiler")
depends=("gtk4" "hwdata")
backup=('etc/lact/config.yaml')
source=("git+https://github.com/ilya-zlobintsev/LACT.git")
provides=('lact')
install=lact.install
_pkgver() {
cd LACT
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "LACT"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "LACT"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build -p lact --frozen --release
}
package() {
cd "LACT"
make PREFIX=/usr DESTDIR="$pkgdir/" install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
rm -rf "$pkgdir/"usr/lib
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=("MIT")
sha256sums=(SKIP)
## fdb6224ae3daae0e41a7c9e8dac9788e41897988414af8885055640b728b3379 lact-git-0.5.4rc-02-x86_64.pkg.tar.lz

42
lact-git/PKGBUILD-aur Normal file
View File

@ -0,0 +1,42 @@
# Maintainer: Ilya Zlobintsev <ilya.zl@protonmail.com>
pkgname=lact-git
pkgver=r444.a8c2c60
pkgrel=1
license=("MIT")
pkgdesc="AMDGPU Controller application (git version)"
url="https://github.com/ilya-zlobintsev/LACT"
makedepends=("rust" "git" "make" "clang" "blueprint-compiler")
depends=("gtk4" "hwdata")
arch=("x86_64" "aarch64")
backup=('etc/lact/config.yaml')
source=("git+https://github.com/ilya-zlobintsev/LACT.git")
sha512sums=("SKIP")
provides=('lact')
install=lact.install
pkgver() {
cd LACT
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "LACT"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "LACT"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build -p lact --frozen --release
}
package() {
cd "LACT"
make PREFIX=/usr DESTDIR="$pkgdir/" install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

1
lact-git/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,LACT}

6
lact-git/deps Normal file
View File

@ -0,0 +1,6 @@
gtk4
rust
git
clang
blueprint-compiler

5
lact-git/lact.desktop Normal file
View File

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=LACT
Description=AMDGPU Control Application
Exec=lact-gui

8
lact-git/lact.install Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
post_install() {
echo ":: To be able to change settings in LACT, you need to enable the lactd service:"
echo " Unfortunately we don't have either a runit or 66 service file written"
echo " Basically you want to run lact-daemon as root, unless there is an issue it will run on its own"
}

6
lact-git/time Normal file
View File

@ -0,0 +1,6 @@
real 8m57.533s
user 15m5.708s
sys 0m27.150s