blob: 9e3b7d23c9e0e42b577ad8b11cceca634585cb19 (
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
67
68
|
# Maintainer: Eren Simsek <18117384-caferen@users.noreply.gitlab.com>
# Maintainer: Guy Boldon <gb@guyboldon.com>
pkgname=coolercontrold
pkgver=1.4.4
pkgrel=1
pkgdesc="A program to monitor and control your cooling devices. This package contains the CoolerControl service daemon."
arch=('x86_64')
url="https://gitlab.com/coolercontrol/coolercontrol"
license=('GPL-3.0-or-later')
depends=(
'libdrm'
'gcc-libs'
'glibc'
'coolercontrol-liqctld'
)
makedepends=(
'cargo'
'nodejs>=18'
'npm'
)
optdepends=(
'nvidia-utils: NVIDIA GPU support'
)
provides=(
"$pkgname"
)
conflicts=(
"$pkgname"
)
# lto is handled by cargo and can conflict with makepkg settings
options=(
!lto
)
source=(
"https://gitlab.com/coolercontrol/coolercontrol/-/archive/$pkgver/${pkgname%d}-$pkgver.tar.gz"
)
sha256sums=(
'acf5a27111122230d243e66eae85212f9c01a402b12028a8918fc785414bb713'
)
build() {
cd "${srcdir}/${pkgname%d}-$pkgver/coolercontrol-ui"
npm ci
npm run build
cp -r dist/* "${srcdir}/${pkgname%d}-$pkgver/$pkgname/resources/app/"
cd "${srcdir}/${pkgname%d}-$pkgver/$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --locked
}
check() {
cd "${srcdir}/${pkgname%d}-$pkgver/$pkgname/target/release"
./coolercontrold --version
}
package() {
cd "${srcdir}/${pkgname%d}-$pkgver/$pkgname"
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
cd "${srcdir}/${pkgname%d}-$pkgver"
# systemd service files
install -Dm644 "packaging/systemd/${pkgname}.service" -t "$pkgdir/usr/lib/systemd/system/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|