[arch-commits] Commit in liquidctl/trunk (PKGBUILD)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Thu Apr 7 19:03:53 UTC 2022
Date: Thursday, April 7, 2022 @ 19:03:53
Author: artafinde
Revision: 1182833
liquitctl: 1.9.1 upstream release
Modified:
liquidctl/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-07 18:52:40 UTC (rev 1182832)
+++ PKGBUILD 2022-04-07 19:03:53 UTC (rev 1182833)
@@ -1,7 +1,7 @@
# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
pkgname=liquidctl
-pkgver=1.8.1
+pkgver=1.9.1
pkgrel=1
arch=('any')
url='https://github.com/liquidctl/liquidctl'
@@ -8,7 +8,7 @@
license=('GPL3')
pkgdesc='Cross-platform CLI and Python drivers for AIO liquid coolers and other devices'
depends=('python' 'python-docopt' 'python-pyusb' 'python-hidapi' 'python-colorlog' 'i2c-tools')
-makedepends=('git' 'python-setuptools')
+makedepends=('git' 'python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("git+$url.git?signed#tag=v$pkgver")
validpgpkeys=('23F335ED4E829797734B22F65841AF7406AF7AD0') # Jonas Tadeu Silva Malaco Filho <jonas at jonasmalaco.com>
@@ -15,18 +15,17 @@
sha512sums=('SKIP')
build() {
- cd $pkgname
+ cd "${pkgname}"
export DIST_NAME='Arch Linux'
export DIST_PACKAGE="$pkgver-$pkgrel"
+ export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
- python setup.py build
-
- gzip liquidctl.8
+ python -m build --wheel --no-isolation
}
check() {
- cd $pkgname
+ cd "${pkgname}"
mkdir runtime
XDG_RUNTIME_DIR=runtime python -m pytest
@@ -33,14 +32,14 @@
}
package() {
- cd $pkgname
+ cd "${pkgname}"
- python setup.py install --root "$pkgdir" --skip-build -O1
+ python -m installer --destdir="${pkgdir}" dist/*.whl
- install -Dm 644 extra/linux/71-liquidctl.rules "$pkgdir"/usr/lib/udev/rules.d/71-liquidctl.rules
+ install -Dm 644 extra/linux/71-liquidctl.rules "${pkgdir}"/usr/lib/udev/rules.d/71-liquidctl.rules
# Install documentation
- install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
- cp -r -a --no-preserve=ownership docs/* "$pkgdir"/usr/share/doc/$pkgname
- install -Dm 644 liquidctl.8.gz "$pkgdir"/usr/share/man/man8/liquidctl.8.gz
+ install -dm 755 "${pkgdir}"/usr/share/doc/"${pkgname}"
+ cp -r -a --no-preserve=ownership docs/* "${pkgdir}"/usr/share/doc/"${pkgname}"
+ install -Dm 644 liquidctl.8 "${pkgdir}"/usr/share/man/man8/liquidctl.8
}
More information about the arch-commits
mailing list