mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 23:11:36 +01:00
33 lines
968 B
Plaintext
33 lines
968 B
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer:
|
|
pkgname=liquidctl
|
|
pkgver=1.6.0
|
|
pkgrel=0
|
|
pkgdesc="Liquid Cooler Control"
|
|
url="https://github.com/liquidctl/liquidctl"
|
|
options="!check" # Requires writable /var/run
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later"
|
|
depends="python3 py3-docopt py3-usb py3-hidapi"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/liquidctl/liquidctl/archive/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")" \
|
|
DIST_PACKAGE="$pkgname $pkgver-r$pkgrel" \
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
py.test-3
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
install -Dm644 liquidctl.8 "$pkgdir"/usr/share/man/man8/liquidctl.8
|
|
}
|
|
|
|
sha512sums="9e9eb15c5efe9cde9d10f6352f38cdfc79792115d754a0193ebf5a47f766879a61da0feb08fb077992b826b121238ce30247fdfbda350f75762304e395d8539b liquidctl-1.6.0.tar.gz"
|