Compare commits

..

2 Commits

Author SHA1 Message Date
c1a999af2f update srcinfo 2021-12-08 17:44:55 +01:00
bff53b3f51 updated package build to use random folder for nvm 2021-12-08 17:44:24 +01:00
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
pkgbase = tidal-hifi-git pkgbase = tidal-hifi-git
pkgdesc = The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm pkgdesc = The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm
pkgver = 2.5.0.r0.g662ef6a pkgver = 2.5.0.r0.g662ef6a
pkgrel = 1 pkgrel = 2
url = https://github.com/Mastermindzh/tidal-hifi url = https://github.com/Mastermindzh/tidal-hifi
arch = x86_64 arch = x86_64
license = custom:MIT license = custom:MIT

View File

@ -1,7 +1,7 @@
# Maintainer: Rick van Lieshout <info@rickvanlieshout.com> # Maintainer: Rick van Lieshout <info@rickvanlieshout.com>
pkgname=tidal-hifi-git pkgname=tidal-hifi-git
pkgrel=1 pkgrel=2
pkgver=2.5.0.r0.g662ef6a pkgver=2.5.0.r0.g662ef6a
pkgdesc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm" pkgdesc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm"
arch=(x86_64) arch=(x86_64)
@ -24,12 +24,13 @@ getnvm() {
else else
echo "nvm could not be found, installing" echo "nvm could not be found, installing"
unset npm_config_prefix unset npm_config_prefix
git clone https://aur.archlinux.org/nvm.git .nvmdep folderName=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 12)
cd .nvmdep git clone https://aur.archlinux.org/nvm.git "$folderName"
cd "$folderName"
makepkg -si --asdeps makepkg -si --asdeps
source /usr/share/nvm/init-nvm.sh source /usr/share/nvm/init-nvm.sh
cd ../ cd ../
rm -rf .nvmdep rm -rf "$folderName"
fi fi
} }