[arch-commits] Commit in liquidctl/trunk (PKGBUILD)
Date: Thursday, December 3, 2020 @ 23:51:52 Author: ffy00 Revision: 769833 fix DIST_NAME and DIST_PACKAGE not being exported (1.4.2-4) Modified: liquidctl/trunk/PKGBUILD --+ PKGBUILD |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-12-03 23:29:27 UTC (rev 769832) +++ PKGBUILD2020-12-03 23:51:52 UTC (rev 769833) @@ -2,7 +2,7 @@ pkgname=liquidctl pkgver=1.4.2 -pkgrel=3 +pkgrel=4 arch=('any') url='https://github.com/jonasmalacofilho/liquidctl' license=('GPL3') @@ -16,8 +16,8 @@ build() { cd $pkgname-$pkgver - DIST_NAME='Arch Linux' - DIST_PACKAGE="$pkgver-$pkgrel" + export DIST_NAME='Arch Linux' + export DIST_PACKAGE="$pkgver-$pkgrel" python setup.py build
[arch-commits] Commit in liquidctl/trunk (PKGBUILD)
Date: Thursday, December 3, 2020 @ 23:29:09 Author: ffy00 Revision: 769831 add udev rules (1.4.2-3) Modified: liquidctl/trunk/PKGBUILD --+ PKGBUILD |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-12-03 23:21:42 UTC (rev 769830) +++ PKGBUILD2020-12-03 23:29:09 UTC (rev 769831) @@ -2,7 +2,7 @@ pkgname=liquidctl pkgver=1.4.2 -pkgrel=2 +pkgrel=3 arch=('any') url='https://github.com/jonasmalacofilho/liquidctl' license=('GPL3') @@ -36,6 +36,8 @@ python setup.py install --root "$pkgdir" --skip-build -O1 + 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
[arch-commits] Commit in liquidctl/trunk (PKGBUILD)
Date: Thursday, December 3, 2020 @ 22:32:58 Author: ffy00 Revision: 769828 upgpkg: liquidctl 1.4.2-2 Added: liquidctl/trunk/PKGBUILD --+ PKGBUILD | 44 1 file changed, 44 insertions(+) Added: PKGBUILD === --- PKGBUILD(rev 0) +++ PKGBUILD2020-12-03 22:32:58 UTC (rev 769828) @@ -0,0 +1,44 @@ +# Maintainer: Filipe Laíns (FFY00) + +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 +} +