blob: 81beeee389870cb01bde28f20a4e3b7d1c066e82 (
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
|
# Maintainer: Jonas Malaco <jonas@protocubo.io>
# Contributor: Fabio Loli
# Contributor: Adam Rutkowski
pkgname=liquidctl-git
pkgver=1.3.3.r321.da3fc627618e
pkgrel=1
pkgdesc="Cross-platform tool and drivers for liquid coolers and other devices"
arch=('any')
url="https://github.com/jonasmalacofilho/liquidctl"
license=('GPL3')
depends=('python' 'python-setuptools' 'python-docopt' 'python-pyusb' 'python-hidapi')
makedepends=('git' 'python-pytest')
provides=("${pkgname%-git}" "python-${pkgname%-git}")
conflicts=("${pkgname%-git}" "python-${pkgname%-git}")
source=("$pkgname::git+https://github.com/jonasmalacofilho/liquidctl.git#branch=master")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//')"
}
build() {
cd "$srcdir/$pkgname"
export DIST_NAME="$(source /etc/os-release && echo $PRETTY_NAME)"
export DIST_PACKAGE="$pkgname $pkgver-$pkgrel"
python setup.py build
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 liquidctl.8 "$pkgdir/usr/share/man/man8/liquidctl.8"
install -Dm644 extra/linux/71-liquidctl.rules "$pkgdir/usr/lib/udev/rules.d/71-liquidctl.rules"
}
check() {
cd "$srcdir/$pkgname"
pytest
}
|