blob: cbcdd6eb9e48f5aaafb3ad645e7550ae4a886a88 (
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
|
# Maintainer: Eren Simsek <18117384-caferen@users.noreply.gitlab.com>
# Maintainer: Guy Boldon <gb@guyboldon.com>
pkgname=coolercontrol-liqctld
pkgver=1.4.4
pkgrel=1
pkgdesc="liquidctl daemon for CoolerControl"
arch=('x86_64')
url="https://gitlab.com/coolercontrol/coolercontrol"
license=('GPL-3.0-or-later')
depends=(
'liquidctl'
'python'
'python-setproctitle'
'python-fastapi'
'python-pydantic'
'uvicorn'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
provides=(
"$pkgname"
)
conflicts=(
"$pkgname"
)
# when liqctld is an optional dependency we should
# we can turn the main source package to a group too
groups=(coolercontrol-bin)
source=(
"https://gitlab.com/coolercontrol/coolercontrol/-/archive/$pkgver/coolercontrol-$pkgver.tar.gz"
)
sha256sums=(
'acf5a27111122230d243e66eae85212f9c01a402b12028a8918fc785414bb713'
)
build() {
cd "${srcdir}/coolercontrol-$pkgver/$pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/coolercontrol-$pkgver/$pkgname"
python -m coolercontrol_liqctld --version
}
package() {
cd "${srcdir}/coolercontrol-$pkgver/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
cd "${srcdir}/coolercontrol-$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"
}
|