mirror of
https://github.com/Mastermindzh/tidal-hifi-aur.git
synced 2025-01-20 17:10:25 +01:00
Merge branch 'master' of github.com:Mastermindzh/tidal-hifi-aur
This commit is contained in:
commit
af017c6e97
36
.SRCINFO
36
.SRCINFO
@ -1,20 +1,22 @@
|
|||||||
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 = 4.4.0.r0.gd0f9a34
|
pkgver = 4.4.0.r0.gd0f9a34
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
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
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = libxss
|
depends = libxss
|
||||||
depends = nss
|
depends = nss
|
||||||
depends = gtk3
|
depends = gtk3
|
||||||
depends = libxcrypt-compat
|
depends = libxcrypt-compat
|
||||||
provides = tidal-hifi
|
provides = tidal-hifi
|
||||||
conflicts = tidal-hifi
|
conflicts = tidal-hifi
|
||||||
source = git+https://github.com/Mastermindzh/tidal-hifi.git
|
source = git+<https://github.com/Mastermindzh/tidal-hifi.git>
|
||||||
source = tidal-hifi.desktop
|
source = tidal-hifi.desktop
|
||||||
sha512sums = SKIP
|
source = tidal-hifi.xml
|
||||||
sha512sums = 31cf40fb3ac81c4a64a8410a78e97c268a440577bce54347ce62f8a9566c8897f8083cd1e5afa40b0fbe9a149fc4fb4f29cad91a12e5b47cf8e300e56351a4f1
|
sha512sums = SKIP
|
||||||
|
sha512sums = 20dc16dfd79cd00686b29bc621c64568b6557d73da5b7c1fba7dee0277784cc6f133520ca55d83fb878c3e5cc6734b6fd1b47502366a8907113625ce4e362bbc
|
||||||
|
sha512sums = e06fce55c2d9fcaeff514b97e8b003dca4c1a0aa8c8e14c3e3b99febbc2e8af7402d2e2009147f3f57a9b6447fafd23dd69e7b4de63cf43c5d67825836ebecb5
|
||||||
|
|
||||||
pkgname = tidal-hifi-git
|
pkgname = tidal-hifi-git
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,4 +4,6 @@
|
|||||||
!package.json
|
!package.json
|
||||||
!PKGBUILD
|
!PKGBUILD
|
||||||
!tidal-hifi.desktop
|
!tidal-hifi.desktop
|
||||||
!src/tidal-hifi.desktop
|
!src/tidal-hifi.desktop
|
||||||
|
!tidal-hifi.xml
|
||||||
|
!src/tidal-hifi.xml
|
||||||
|
38
PKGBUILD
38
PKGBUILD
@ -13,18 +13,18 @@ provides=(tidal-hifi)
|
|||||||
conflicts=(tidal-hifi)
|
conflicts=(tidal-hifi)
|
||||||
|
|
||||||
source=("git+https://github.com/Mastermindzh/tidal-hifi.git"
|
source=("git+https://github.com/Mastermindzh/tidal-hifi.git"
|
||||||
"tidal-hifi.desktop")
|
"tidal-hifi.desktop"
|
||||||
|
"tidal-hifi.xml")
|
||||||
sha512sums=('SKIP'
|
sha512sums=('SKIP'
|
||||||
'31cf40fb3ac81c4a64a8410a78e97c268a440577bce54347ce62f8a9566c8897f8083cd1e5afa40b0fbe9a149fc4fb4f29cad91a12e5b47cf8e300e56351a4f1')
|
'20dc16dfd79cd00686b29bc621c64568b6557d73da5b7c1fba7dee0277784cc6f133520ca55d83fb878c3e5cc6734b6fd1b47502366a8907113625ce4e362bbc'
|
||||||
|
"e06fce55c2d9fcaeff514b97e8b003dca4c1a0aa8c8e14c3e3b99febbc2e8af7402d2e2009147f3f57a9b6447fafd23dd69e7b4de63cf43c5d67825836ebecb5")
|
||||||
|
|
||||||
getnvm() {
|
getnvm() {
|
||||||
if command -v nvm
|
if command -v nvm; then
|
||||||
then
|
|
||||||
echo "nvm command found, using system version.."
|
echo "nvm command found, using system version.."
|
||||||
else
|
else
|
||||||
|
|
||||||
if test -f "/usr/share/nvm/init-nvm.sh"
|
if test -f "/usr/share/nvm/init-nvm.sh"; then
|
||||||
then
|
|
||||||
echo "found init-nvm.sh in /usr/share/nvm, sourcing..."
|
echo "found init-nvm.sh in /usr/share/nvm, sourcing..."
|
||||||
unset npm_config_prefix
|
unset npm_config_prefix
|
||||||
source "/usr/share/nvm/init-nvm.sh"
|
source "/usr/share/nvm/init-nvm.sh"
|
||||||
@ -49,42 +49,46 @@ pkgver() {
|
|||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
getnvm
|
getnvm
|
||||||
|
|
||||||
cd "${srcdir}/${pkgname%-git}" || exit
|
cd "${srcdir}/${pkgname%-git}" || exit
|
||||||
|
|
||||||
# use correct nodejs/npm versions
|
# use correct nodejs/npm versions
|
||||||
nvm install lts/gallium
|
nvm install lts/gallium
|
||||||
nvm use lts/gallium
|
nvm use lts/gallium
|
||||||
|
|
||||||
# install build dependencies
|
# install build dependencies
|
||||||
npm install
|
npm install
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
getnvm
|
getnvm
|
||||||
|
|
||||||
cd "${srcdir}/${pkgname%-git}" || exit
|
cd "${srcdir}/${pkgname%-git}" || exit
|
||||||
|
|
||||||
# We are not using the systems Electron as we need castlab's Electron.
|
# We are not using the systems Electron as we need castlab's Electron.
|
||||||
npm run build-arch
|
npm run build-arch
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname%-git}" || exit
|
cd "${srcdir}/${pkgname%-git}" || exit
|
||||||
|
|
||||||
install -d "${pkgdir}/opt/tidal-hifi/" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/doc" "${pkgdir}/usr/share/licenses"
|
install -d "${pkgdir}/opt/tidal-hifi/" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/doc" "${pkgdir}/usr/share/licenses"
|
||||||
|
|
||||||
cp -r dist/linux-unpacked/* "${pkgdir}/opt/tidal-hifi/"
|
cp -r dist/linux-unpacked/* "${pkgdir}/opt/tidal-hifi/"
|
||||||
chmod +x "${pkgdir}/opt/tidal-hifi/tidal-hifi"
|
chmod +x "${pkgdir}/opt/tidal-hifi/tidal-hifi"
|
||||||
|
|
||||||
ln -s "/opt/tidal-hifi/tidal-hifi" "${pkgdir}/usr/bin/tidal-hifi"
|
ln -s "/opt/tidal-hifi/tidal-hifi" "${pkgdir}/usr/bin/tidal-hifi"
|
||||||
|
|
||||||
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/pixmaps/tidal-hifi.png"
|
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/pixmaps/tidal-hifi.png"
|
||||||
|
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/icons/${pkgname%-git}/tidal-hifi.png"
|
||||||
|
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/icons/hicolor/0x0/apps/tidal-hifi.png"
|
||||||
install -Dm 644 "${srcdir}/tidal-hifi.desktop" "${pkgdir}/usr/share/applications/tidal-hifi.desktop"
|
install -Dm 644 "${srcdir}/tidal-hifi.desktop" "${pkgdir}/usr/share/applications/tidal-hifi.desktop"
|
||||||
|
install -Dm 644 "${srcdir}/tidal-hifi.xml" "${pkgdir}/usr/share/mime/packages/tidal-hifi.xml"
|
||||||
|
|
||||||
install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||||
install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/icons/hicolor/0x0/apps/tidal-hifi.png"
|
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/icons/hicolor/0x0/apps/tidal-hifi.png"
|
||||||
|
|
||||||
ln -s "/opt/tidal-hifi/LICENSE.electron.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
|
ln -s "/opt/tidal-hifi/LICENSE.electron.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
|
||||||
ln -s "/opt/tidal-hifi/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
|
ln -s "/opt/tidal-hifi/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=tidal-hifi
|
Name=TIDAL Hi-Fi
|
||||||
GenericName=tidal-hifi
|
GenericName=TIDAL Hi-Fi
|
||||||
Comment=The web version of listen.tidal.com running in electron with hifi support thanks to widevine.
|
Comment=The web version of listen.tidal.com running in electron with hifi support thanks to widevine.
|
||||||
Exec=tidal-hifi %u
|
Exec=tidal-hifi %u
|
||||||
Icon=/usr/share/icons/hicolor/0x0/apps/tidal-hifi.png
|
Icon=/usr/share/icons/tidal-hifi/tidal-hifi.png
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Network;Application;Audio;Video
|
Categories=Network;Application;Audio;Video;AudioVideo
|
||||||
StartupWMClass=tidal-hifi
|
StartupWMClass=tidal-hifi
|
||||||
X-PulseAudio-Properties=media.role=music
|
X-PulseAudio-Properties=media.role=music
|
||||||
|
MimeType=x-scheme-handler/tidal;
|
6
tidal-hifi.xml
Normal file
6
tidal-hifi.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||||
|
<mime-type type="x-scheme-handler/tidal">
|
||||||
|
<icon name="tidal-hifi" />
|
||||||
|
</mime-type>
|
||||||
|
</mime-info>
|
Loading…
Reference in New Issue
Block a user