Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
@ 2020-08-07  2:26 Frick-David
  2020-08-07  2:40 ` ericonr
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Frick-David @ 2020-08-07  2:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2146 bytes --]

New issue by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/24123

Description:
Hey there voiders,

I am working with the creator of `liquidctl` to get it into a void linux package. The creator provided a template file for me to submit to help get it started. I hope to help maintain and get it going.

The template we have is as follows:
```
# Template file for 'liquidctl'
pkgname=liquidctl
version=1.3.3
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-usb libusb python3-hidapi python3-docopt"
short_desc="Monitor and control liquid coolers and other devices"
maintainer="David Frick <name@domain>"
license="GPL-3.0-or-later"
homepage="https://github.com/jonasmalacofilho/liquidctl"
distfile="${PYPI_SITE}/l/liquidctl/liquidctl-${version}.tar.gz"
checksum=d13180867e07420c5890fe1110e8f45fe343794549a9ed7d5e8e76663bc10c24

pre_build() {
    # upstream encourages the use of these env vars, at setup.py build time, to
    # customize the output of liquidctl --version
    export DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")"
    export DIST_PACKAGE="$pkgname $version-$revision"
}

post_install() {
	vman liquidctl.8
	for f in docs/*.md; do
		vdoc "$f"
	done
}

# liquidctl can be used as a CLI or as a Python module, but unsure on how to
# split the packages, especially because the CLI is a setuptools script:
# setup.py will generate the actual executable, a Python script that simply
# calls liquidctl.cli.main
python3-liquidctl_package() {
	depends="liquidctl>=${version}_${revision}"
	build_style=meta
	short_desc+=" (transitional dummy package)"
}

# TODO package trezor/cython-hidapi as python3-hidapi
# QUESTION shouldn't python3-usb depend on libusb or another backend?
# QUESTION does Void populate os-release $PRETTY_NAME with something useful?
# QUESTION how should the split be handled?
```

Can I have someone help me review this, finialize it then help me set it up to wear I can maintain it?
That would be much appreciated.

Best,
David

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
@ 2020-08-07  2:40 ` ericonr
  2020-08-07  2:40 ` ericonr
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ericonr @ 2020-08-07  2:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-670289196

Comment:
> export DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")"

I don't see any issue with just setting `DIST_NAME="Void Linux"` directly.

I wouldn't split the package at all, tbh.

> # QUESTION shouldn't python3-usb depend on libusb or another backend?

@sgn? 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
  2020-08-07  2:40 ` ericonr
@ 2020-08-07  2:40 ` ericonr
  2020-08-07 11:24 ` sgn
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ericonr @ 2020-08-07  2:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 418 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-670289196

Comment:
> export DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")"

I don't see any issue with just setting `DIST_NAME="Void Linux"` directly.

I wouldn't split the package at all, tbh.

> QUESTION shouldn't python3-usb depend on libusb or another backend?

@sgn? 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
  2020-08-07  2:40 ` ericonr
  2020-08-07  2:40 ` ericonr
@ 2020-08-07 11:24 ` sgn
  2020-08-07 11:25 ` sgn
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sgn @ 2020-08-07 11:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-670469740

Comment:
> > QUESTION shouldn't python3-usb depend on libusb or another backend?
> 
> @sgn?

Correct, it's my mistake. I added `python3-usb` to support `yubikey-manager` and `yubikey-manager` pulls `libusb` in via `pcsc-ccid`, hence, noone noticed the brokenness, I'll fix it.

Thanks for the ping.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (2 preceding siblings ...)
  2020-08-07 11:24 ` sgn
@ 2020-08-07 11:25 ` sgn
  2020-08-07 11:32 ` sgn
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sgn @ 2020-08-07 11:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-670469740

Comment:
> > export DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")"
> 
> I don't see any issue with just setting `DIST_NAME="Void Linux"` directly.

I also support setting directly, no need with fiddling anything else.

> > QUESTION shouldn't python3-usb depend on libusb or another backend?

Correct, it's my mistake. I added `python3-usb` to support `yubikey-manager` and `yubikey-manager` pulls `libusb` in via `pcsc-ccid`, hence, noone noticed the brokenness, I'll fix it.

Thanks for the ping.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (3 preceding siblings ...)
  2020-08-07 11:25 ` sgn
@ 2020-08-07 11:32 ` sgn
  2020-12-03  2:08 ` Frick-David
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sgn @ 2020-08-07 11:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-670469740

Comment:
> > export DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")"
> 
> I don't see any issue with just setting `DIST_NAME="Void Linux"` directly.

I also support setting directly, no need with fiddling anything else.

> > QUESTION shouldn't python3-usb depend on libusb or another backend?

Correct, it's my mistake. I added `python3-usb` to support `yubikey-manager` and `yubikey-manager` pulls `libusb` in via `pcsc-ccid`, hence, noone noticed the brokenness, I'll fix it.

Thanks for the ping.

---
EDIT: Fixed in https://github.com/void-linux/void-packages/commit/5c7e0b558e9c8bd753d09914990714e7f6ae086b



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (4 preceding siblings ...)
  2020-08-07 11:32 ` sgn
@ 2020-12-03  2:08 ` Frick-David
  2020-12-03  2:09 ` Frick-David
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Frick-David @ 2020-12-03  2:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

New comment by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-737613653

Comment:
```
# Template file for 'liquidctl'
pkgname=liquidctl
version=1.3.3
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-usb libusb python3-hidapi python3-docopt"
short_desc="Monitor and control liquid coolers and other devices"
maintainer="David Frick <name@domain>"
license="GPL-3.0-or-later"
homepage="https://github.com/jonasmalacofilho/liquidctl"
distfile="${PYPI_SITE}/l/liquidctl/liquidctl-${version}.tar.gz"
checksum=d13180867e07420c5890fe1110e8f45fe343794549a9ed7d5e8e76663bc10c24

pre_build() {
    # upstream encourages the use of these env vars, at setup.py build time, to
    # customize the output of liquidctl --version
    export DIST_NAME="Void Linux"
    export DIST_PACKAGE="$pkgname $version-$revision"
}

post_install() {
	vman liquidctl.8
	for f in docs/*.md; do
		vdoc "$f"
	done
}

# setup.py will generate the actual executable, a Python script that simply
# calls liquidctl.cli.main
python3-liquidctl_package() {
	depends="liquidctl>=${version}_${revision}"
	build_style=meta
	short_desc+=" (transitional dummy package)"
}
```
@sgn I should be good to go to add `python3-usb as a dependency correct?

Can I get another review before I PR this?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (5 preceding siblings ...)
  2020-12-03  2:08 ` Frick-David
@ 2020-12-03  2:09 ` Frick-David
  2020-12-03  2:58 ` ericonr
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Frick-David @ 2020-12-03  2:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]

New comment by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-737613653

Comment:
```
# Template file for 'liquidctl'
pkgname=liquidctl
version=1.3.3
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-usb libusb python3-hidapi python3-docopt"
short_desc="Monitor and control liquid coolers and other devices"
maintainer="David Frick <frick-david@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/jonasmalacofilho/liquidctl"
distfile="${PYPI_SITE}/l/liquidctl/liquidctl-${version}.tar.gz"
checksum=d13180867e07420c5890fe1110e8f45fe343794549a9ed7d5e8e76663bc10c24

pre_build() {
    # upstream encourages the use of these env vars, at setup.py build time, to
    # customize the output of liquidctl --version
    export DIST_NAME="Void Linux"
    export DIST_PACKAGE="$pkgname $version-$revision"
}

post_install() {
	vman liquidctl.8
	for f in docs/*.md; do
		vdoc "$f"
	done
}

# setup.py will generate the actual executable, a Python script that simply
# calls liquidctl.cli.main
python3-liquidctl_package() {
	depends="liquidctl>=${version}_${revision}"
	build_style=meta
	short_desc+=" (transitional dummy package)"
}
```
@sgn I should be good to go to add `python3-usb as a dependency correct?

Can I get another review before I PR this?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (6 preceding siblings ...)
  2020-12-03  2:09 ` Frick-David
@ 2020-12-03  2:58 ` ericonr
  2020-12-03 15:51 ` Frick-David
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ericonr @ 2020-12-03  2:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-737631601

Comment:
We don't use noarch anymore.

The comment on the subpackage shouldn't be necessary. That said, why is there a subpackage at all? `python3-liquidctl` doesn't exist as a current package.

(feel free to discuss these in the PR)

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (7 preceding siblings ...)
  2020-12-03  2:58 ` ericonr
@ 2020-12-03 15:51 ` Frick-David
  2020-12-03 16:53 ` jonasmalacofilho
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Frick-David @ 2020-12-03 15:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

New comment by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-738094707

Comment:
Will make those changes and open a PR.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (8 preceding siblings ...)
  2020-12-03 15:51 ` Frick-David
@ 2020-12-03 16:53 ` jonasmalacofilho
  2020-12-04  0:14 ` jonasmalacofilho
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jonasmalacofilho @ 2020-12-03 16:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

New comment by jonasmalacofilho on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-738134940

Comment:
@Frick-David

You may also want update to 1.4.2 and include the provided udev rules and additional documentation.  You can use the [liquidctl<sup>AUR</sup>](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=liquidctl) recipe as a reference.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (9 preceding siblings ...)
  2020-12-03 16:53 ` jonasmalacofilho
@ 2020-12-04  0:14 ` jonasmalacofilho
  2020-12-04 21:09 ` Frick-David
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jonasmalacofilho @ 2020-12-04  0:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

New comment by jonasmalacofilho on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-738134940

Comment:
@Frick-David

You may also want update to 1.4.2 and include the provided udev rules and additional documentation.  You can use the [liquidctl](https://www.archlinux.org/packages/community/any/liquidctl/) recipe as a reference.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (10 preceding siblings ...)
  2020-12-04  0:14 ` jonasmalacofilho
@ 2020-12-04 21:09 ` Frick-David
  2022-04-18  2:11 ` github-actions
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Frick-David @ 2020-12-04 21:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New comment by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-739021954

Comment:
This is on hold while I package `python3-hidapi` / `python3-hid.` I thought these were packaged but it appears not and I can not build liquidctl without it. See #19670

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (11 preceding siblings ...)
  2020-12-04 21:09 ` Frick-David
@ 2022-04-18  2:11 ` github-actions
  2022-05-02  2:15 ` [ISSUE] [CLOSED] " github-actions
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: github-actions @ 2022-04-18  2:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-1101026336

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ISSUE] [CLOSED] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (12 preceding siblings ...)
  2022-04-18  2:11 ` github-actions
@ 2022-05-02  2:15 ` github-actions
  2023-10-10 16:04 ` cat-marin
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: github-actions @ 2022-05-02  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2149 bytes --]

Closed issue by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/24123

Description:
Hey there voiders,

I am working with the creator of `liquidctl` to get it into a void linux package. The creator provided a template file for me to submit to help get it started. I hope to help maintain and get it going.

The template we have is as follows:
```
# Template file for 'liquidctl'
pkgname=liquidctl
version=1.3.3
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-usb libusb python3-hidapi python3-docopt"
short_desc="Monitor and control liquid coolers and other devices"
maintainer="David Frick <name@domain>"
license="GPL-3.0-or-later"
homepage="https://github.com/jonasmalacofilho/liquidctl"
distfile="${PYPI_SITE}/l/liquidctl/liquidctl-${version}.tar.gz"
checksum=d13180867e07420c5890fe1110e8f45fe343794549a9ed7d5e8e76663bc10c24

pre_build() {
    # upstream encourages the use of these env vars, at setup.py build time, to
    # customize the output of liquidctl --version
    export DIST_NAME="$(source /etc/os-release && echo "$PRETTY_NAME")"
    export DIST_PACKAGE="$pkgname $version-$revision"
}

post_install() {
	vman liquidctl.8
	for f in docs/*.md; do
		vdoc "$f"
	done
}

# liquidctl can be used as a CLI or as a Python module, but unsure on how to
# split the packages, especially because the CLI is a setuptools script:
# setup.py will generate the actual executable, a Python script that simply
# calls liquidctl.cli.main
python3-liquidctl_package() {
	depends="liquidctl>=${version}_${revision}"
	build_style=meta
	short_desc+=" (transitional dummy package)"
}

# TODO package trezor/cython-hidapi as python3-hidapi
# QUESTION shouldn't python3-usb depend on libusb or another backend?
# QUESTION does Void populate os-release $PRETTY_NAME with something useful?
# QUESTION how should the split be handled?
```

Can I have someone help me review this, finialize it then help me set it up to wear I can maintain it?
That would be much appreciated.

Best,
David

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (13 preceding siblings ...)
  2022-05-02  2:15 ` [ISSUE] [CLOSED] " github-actions
@ 2023-10-10 16:04 ` cat-marin
  2023-11-16 21:01 ` juipeltje
  2023-11-16 21:04 ` juipeltje
  16 siblings, 0 replies; 18+ messages in thread
From: cat-marin @ 2023-10-10 16:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

New comment by cat-marin on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-1755756637

Comment:
I can't seem to build liquidctl - has anyone been able to get this working recently? I had it working briefly but it broke after an update and I can't get it to build again. 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (14 preceding siblings ...)
  2023-10-10 16:04 ` cat-marin
@ 2023-11-16 21:01 ` juipeltje
  2023-11-16 21:04 ` juipeltje
  16 siblings, 0 replies; 18+ messages in thread
From: juipeltje @ 2023-11-16 21:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2490 bytes --]

New comment by juipeltje on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-1815307417

Comment:
i'm not sure if i should make a new issue or necrobump this one, but i came across this when i was looking to see if someone had already made a template file for liquidctl, and i decided to update the one in this post to practice making templates.

```
# Template file for 'liquidctl'
pkgname=liquidctl
version=1.13.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
depends="python3-setuptools python3-usb python3-crcmod python3-hid python3-docopt python3-Pillow python3-smbus libusb"
short_desc="Monitor and control liquid coolers and other devices"
maintainer="juipeltje <joppe4444@outlook.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/jonasmalacofilho/liquidctl"
distfiles="https://github.com/liquidctl/liquidctl/releases/download/v1.13.0/liquidctl-1.13.0.tar.gz"
checksum="ee17241689c0bf3de43cf4d97822e344f5b57513d16dd160e37fa0e389a158c7"

pre_build() {
    # upstream encourages the use of these env vars, at setup.py build time, to
    # customize the output of liquidctl --version
    export DIST_NAME="Void Linux"
    export DIST_PACKAGE="$pkgname $version-$revision"
}

post_install() {
	vman liquidctl.8
	for f in docs/*.md; do
		vdoc "$f"
	done
}
```
liquidctl also requires python3-colorlog to be installed though, which is not in the void repos, so i made a template file for that as well:
```
# Template file for 'python3-colorlog'
pkgname=python3-colorlog
version=6.7.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
short_desc="Add colours to the output of Python's logging module"
maintainer="juipeltje <joppe4444@outlook.com>"
license="MIT"
homepage="https://pypi.org/project/colorlog/#description"
distfiles="https://files.pythonhosted.org/packages/78/6b/4e5481ddcdb9c255b2715f54c863629f1543e97bc8c309d1c5c131ad14f2/colorlog-6.7.0.tar.gz"
checksum="bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5"
```
i'm still a noob when it comes to making templates, so i'm not sure if there's anything else that should be added to the template for the sake of completeness, but they do install succesfully and i got liquidctl running with these. i think the distfiles url in python3-colorlog could be shortened with the pypi site variable, but i'm not entirely sure.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Request Review of `Liquidctl` Package Template and Guidance on Maintaining it
  2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
                   ` (15 preceding siblings ...)
  2023-11-16 21:01 ` juipeltje
@ 2023-11-16 21:04 ` juipeltje
  16 siblings, 0 replies; 18+ messages in thread
From: juipeltje @ 2023-11-16 21:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]

New comment by juipeltje on void-packages repository

https://github.com/void-linux/void-packages/issues/24123#issuecomment-1815307417

Comment:
i'm not sure if i should make a new issue or necrobump this one, but i came across this when i was looking to see if someone had already made a template file for liquidctl, and i decided to update the one in this post to practice making templates.

```
# Template file for 'liquidctl'
pkgname=liquidctl
version=1.13.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
depends="python3-setuptools python3-usb python3-crcmod python3-hid python3-docopt python3-Pillow python3-smbus python3-colorlog libusb"
short_desc="Monitor and control liquid coolers and other devices"
maintainer="juipeltje <joppe4444@outlook.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/jonasmalacofilho/liquidctl"
distfiles="https://github.com/liquidctl/liquidctl/releases/download/v1.13.0/liquidctl-1.13.0.tar.gz"
checksum="ee17241689c0bf3de43cf4d97822e344f5b57513d16dd160e37fa0e389a158c7"

pre_build() {
    # upstream encourages the use of these env vars, at setup.py build time, to
    # customize the output of liquidctl --version
    export DIST_NAME="Void Linux"
    export DIST_PACKAGE="$pkgname $version-$revision"
}

post_install() {
	vman liquidctl.8
	for f in docs/*.md; do
		vdoc "$f"
	done
}
```
liquidctl also requires python3-colorlog to be installed though, which is not in the void repos, so i made a template file for that as well:
```
# Template file for 'python3-colorlog'
pkgname=python3-colorlog
version=6.7.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
short_desc="Add colours to the output of Python's logging module"
maintainer="juipeltje <joppe4444@outlook.com>"
license="MIT"
homepage="https://pypi.org/project/colorlog/#description"
distfiles="https://files.pythonhosted.org/packages/78/6b/4e5481ddcdb9c255b2715f54c863629f1543e97bc8c309d1c5c131ad14f2/colorlog-6.7.0.tar.gz"
checksum="bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5"
```
i'm still a noob when it comes to making templates, so i'm not sure if there's anything else that should be added to the template for the sake of completeness, but they do install succesfully and i got liquidctl running with these. i think the distfiles url in python3-colorlog could be shortened with the pypi site variable, but i'm not entirely sure.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-11-16 21:04 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07  2:26 [ISSUE] Request Review of `Liquidctl` Package Template and Guidance on Maintaining it Frick-David
2020-08-07  2:40 ` ericonr
2020-08-07  2:40 ` ericonr
2020-08-07 11:24 ` sgn
2020-08-07 11:25 ` sgn
2020-08-07 11:32 ` sgn
2020-12-03  2:08 ` Frick-David
2020-12-03  2:09 ` Frick-David
2020-12-03  2:58 ` ericonr
2020-12-03 15:51 ` Frick-David
2020-12-03 16:53 ` jonasmalacofilho
2020-12-04  0:14 ` jonasmalacofilho
2020-12-04 21:09 ` Frick-David
2022-04-18  2:11 ` github-actions
2022-05-02  2:15 ` [ISSUE] [CLOSED] " github-actions
2023-10-10 16:04 ` cat-marin
2023-11-16 21:01 ` juipeltje
2023-11-16 21:04 ` juipeltje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).