[arch-commits] Commit in liquidctl/repos (community-any community-any/PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Thu Dec 3 22:33:02 UTC 2020


    Date: Thursday, December 3, 2020 @ 22:33:01
  Author: ffy00
Revision: 769829

archrelease: copy trunk to community-any

Added:
  liquidctl/repos/community-any/
  liquidctl/repos/community-any/PKGBUILD
    (from rev 769828, liquidctl/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: liquidctl/repos/community-any/PKGBUILD (from rev 769828, liquidctl/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-12-03 22:33:01 UTC (rev 769829)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=liquidctl
+pkgver=1.4.2
+pkgrel=2
+arch=('any')
+url='https://github.com/jonasmalacofilho/liquidctl'
+license=('GPL3')
+pkgdesc='Cross-platform CLI and Python drivers for AIO liquid coolers and other devices'
+depends=('python' 'python-docopt' 'python-pyusb' 'python-hidapi')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('617510153ee84ce94bc143fa4b4a8af1d13478cfe4cdb838a9c72dd97d57a924f36a5aedf9a9eb96cc240b3d088651bc5db11ea9298e980386e7f398863705e5')
+
+build() {
+  cd $pkgname-$pkgver
+
+  DIST_NAME='Arch Linux'
+  DIST_PACKAGE="$pkgver-$pkgrel"
+
+  python setup.py build
+
+  gzip liquidctl.8
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  mkdir runtime
+  XDG_RUNTIME_DIR=runtime python -m pytest
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python setup.py install --root "$pkgdir" --skip-build -O1
+
+  # 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
+}
+



More information about the arch-commits mailing list