I've reworked the PKGBUILD:
- added
python-setuptools
to themakedepends
array to make the PKGBUILD work in a clean chroot, - replaced the makedepends on the
nvm
AUR package with thenodejs-lts-hydrogen
package from the official Archlinux repos, - sorted all dependencies alphabetically,
- The PKGBUILD shouldn't have the executable bit set, so it should get a
chmod 644
. Also, the filesMakefile
andTEST-PKGBUILD
are not needed and can be removed.
Here's the diff/patch:
diff --git a/PKGBUILD b/PKGBUILD
old mode 100755
new mode 100644
index 0aae3fb14065..8fa23a5f593a
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,44 +3,45 @@
pkgname=coolercontrol
_app_id="org.$pkgname.CoolerControl"
pkgver=1.0.0
-pkgrel=2
+pkgrel=2.1
pkgdesc="A program to monitor and control your cooling devices"
arch=('x86_64')
url="https://gitlab.com/coolercontrol/coolercontrol"
license=('GPL3')
depends=(
+ 'gcc-libs'
+ 'glibc'
+ 'gtk3'
'hicolor-icon-theme'
- 'python'
+ 'libappindicator-gtk3'
'liquidctl'
+ 'python'
'python-setproctitle'
'python-fastapi'
- 'uvicorn'
- 'gcc-libs'
- 'glibc'
'python-pydantic'
'python-urllib3'
+ 'uvicorn'
'webkit2gtk'
- 'gtk3'
- 'libappindicator-gtk3'
)
makedepends=(
- 'python-build'
- 'python-wheel'
- 'python-installer'
- 'cargo'
- 'npm'
- 'nvm'
- 'webkit2gtk'
+ 'appmenu-gtk-module'
'base-devel'
+ 'cargo'
'curl'
- 'wget'
'file'
- 'openssl'
- 'appmenu-gtk-module'
'gtk3'
'libappindicator-gtk3'
'librsvg'
'libvips'
+ 'nodejs-lts-hydrogen'
+ 'npm'
+ 'openssl'
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+ 'webkit2gtk'
+ 'wget'
)
checkdepends=(
'appstream-glib'
@@ -66,29 +67,11 @@ sha256sums=(
'3377dbd54f7d506a95e53d6d0aa323af94191067479d2eca5b45d34065a1c265'
)
-_ensure_local_nvm() {
- # let's be sure we are starting clean
- which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
-
- export NVM_DIR="${srcdir}/$pkgname-$pkgver/coolercontrol-ui/.nvm"
- # The init script returns 3 if version specified
- # in ./.nvrc is not (yet) installed in $NVM_DIR
- # but nvm itself still gets loaded ok
- source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
-}
-
-prepare() {
- _ensure_local_nvm
- cd "${srcdir}/$pkgname-$pkgver/coolercontrol-ui"
- nvm install 18.18.2
-}
-
build() {
cd "${srcdir}/$pkgname-$pkgver/coolercontrol-liqctld"
python -m build --wheel --no-isolation
# This is the new UI in preview. The above Python coolercontrol-gui package will be removed with the next release
cd "${srcdir}/$pkgname-$pkgver/coolercontrol-ui"
- _ensure_local_nvm
npm ci
npm run build
cp -r dist/* "${srcdir}/$pkgname-$pkgver/coolercontrold/resources/app/"
Pinned Comments
codifryed commented on 2024-09-22 19:02 (UTC)
With the release of 1.4.1 CoolerControl has now been spit up into several packages. This requires users to uninstall and then reinstall the application.
See: https://gitlab.com/coolercontrol/coolercontrol/-/issues/347
There's an upside, there's now a binary AUR package
coolercontrol-bin
for less compile time!codifryed commented on 2023-02-07 22:54 (UTC) (edited on 2024-01-06 23:57 (UTC) by codifryed)
Post-installation steps:
Then open the desktop application.