diff options
Diffstat (limited to 'community/liquidctl/APKBUILD')
-rw-r--r-- | community/liquidctl/APKBUILD | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/community/liquidctl/APKBUILD b/community/liquidctl/APKBUILD index 701f5b32f63..24a3b1578e2 100644 --- a/community/liquidctl/APKBUILD +++ b/community/liquidctl/APKBUILD @@ -1,34 +1,59 @@ # Contributor: Leo <thinkabit.ukim@gmail.com> # Maintainer: pkgname=liquidctl -pkgver=1.7.2 +pkgver=1.13.0 pkgrel=1 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" +depends=" + py3-colorlog + py3-crcmod + py3-docopt + py3-hidapi + py3-pillow + py3-smbus + py3-usb + " +makedepends=" + py3-gpep517 + py3-installer + py3-setuptools + py3-setuptools_scm + py3-wheel + " checkdepends="py3-pytest" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/liquidctl/liquidctl/archive/v$pkgver.tar.gz" +prepare() { + default_prepare + + # `uaccess` is (e)logind-specific. + sed -i 's/TAG+="uaccess"/GROUP="plugdev"/' extra/linux/71-liquidctl.rules +} + build() { - DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")" \ - DIST_PACKAGE="$pkgname $pkgver-r$pkgrel" \ - python3 setup.py build + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - py.test-3 + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" - install -Dm644 liquidctl.8 "$pkgdir"/usr/share/man/man8/liquidctl.8 + python3 -m installer -d "$pkgdir" .dist/*.whl + install -Dm644 extra/linux/71-liquidctl.rules -t "$pkgdir/usr/lib/udev/rules.d/" + install -Dm644 liquidctl.8 -t "$pkgdir/usr/share/man/man8/" } sha512sums=" -b75f65ebdb383e358ad651dd9e92710ea77efa2e88a09f848d737ab98637de213e3ca60a53497f12aabc4576d404165b62187060cb6bb8dd64b3cffaa49247e3 liquidctl-1.7.2.tar.gz +b909e31d892519d88be09d4bab94a864b4fe4bc83fe965c94fbfe2f6867ee423e0dd781942612a188dd787c5e6ff0cf27981d0ce13c266ba98543b23a4da09de liquidctl-1.13.0.tar.gz " |