mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-25 14:53:41 +01:00
added arch (AUR) PKGBUILD files
Package is visible on: https://aur.archlinux.org/packages/tidal-hifi-git/
This commit is contained in:
parent
0636c8b92f
commit
52b32c0783
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,2 +1,9 @@
|
||||
node_modules
|
||||
dist
|
||||
|
||||
# ignore all build files except for the .desktop and PKGBUILD files
|
||||
build/linux/arch/*
|
||||
!build/linux/arch/PKGBUILD
|
||||
!build/linux/arch/.SRCINFO
|
||||
!build/linux/arch/tidal-hifi.desktop
|
||||
!build/linux/arch/install.sh
|
||||
|
@ -28,6 +28,14 @@ The web version of [listen.tidal.com](listen.tidal.com) running in electron with
|
||||
|
||||
Various packaged versions of the software are available on the [releases](https://github.com/Mastermindzh/tidal-hifi/releases) tab.
|
||||
|
||||
### Arch Linux
|
||||
|
||||
Arch Linux users can use the AUR to install tidal-hifi:
|
||||
|
||||
```sh
|
||||
trizen tidal-hifi
|
||||
```
|
||||
|
||||
### Using source
|
||||
|
||||
To install and work with the code on this project follow these steps:
|
||||
|
19
build/linux/arch/.SRCINFO
Normal file
19
build/linux/arch/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = tidal-hifi-git
|
||||
pkgdesc = The web version of listen.tidal.com running in electron with hifi support thanks to widevine.
|
||||
pkgver = 0.5
|
||||
pkgrel = 1
|
||||
url = https://github.com/Mastermindzh/tidal-hifi
|
||||
arch = x86_64
|
||||
license = custom:MIT
|
||||
makedepends = npm
|
||||
makedepends = git
|
||||
depends = libxss
|
||||
depends = nss
|
||||
depends = gtk3
|
||||
provides = tidal-hifi
|
||||
source = https://github.com/Mastermindzh/tidal-hifi/archive/0.5.zip
|
||||
source = tidal-hifi.desktop
|
||||
sha512sums = a25a9189a10aa35a62ad41299792909b0ac6547544802ef9d1f58d6d0bff75b4d364975c81d5a4d73eabf64bdb772c3823c3b3cd58540d40acaedf6594033f61
|
||||
sha512sums = fa5fa918ea890baa5f500db3153a6eff3d63966528ffa3349acda3ea02fbecb1ea78a1ba1d23ef7402de2228fc0a483252e0b7e72c73cfb25ed401bedaf856f5
|
||||
|
||||
pkgname = tidal-hifi-git
|
56
build/linux/arch/PKGBUILD
Normal file
56
build/linux/arch/PKGBUILD
Normal file
@ -0,0 +1,56 @@
|
||||
# Maintainer: Rick van Lieshout <info@rickvanlieshout.com>
|
||||
|
||||
_pkgname=tidal-hifi
|
||||
pkgname="$_pkgname"
|
||||
pkgver=0.5
|
||||
pkgrel=1
|
||||
pkgdesc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine."
|
||||
arch=("x86_64")
|
||||
url="https://github.com/Mastermindzh/tidal-hifi"
|
||||
license=("custom:MIT")
|
||||
|
||||
depends=("libxss" "nss" "gtk3")
|
||||
makedepends=("npm" "git")
|
||||
provides=("$_pkgname")
|
||||
|
||||
source=("https://github.com/Mastermindzh/tidal-hifi/archive/$pkgver.zip"
|
||||
"${_pkgname}.desktop")
|
||||
sha512sums=('a25a9189a10aa35a62ad41299792909b0ac6547544802ef9d1f58d6d0bff75b4d364975c81d5a4d73eabf64bdb772c3823c3b3cd58540d40acaedf6594033f61'
|
||||
'fa5fa918ea890baa5f500db3153a6eff3d63966528ffa3349acda3ea02fbecb1ea78a1ba1d23ef7402de2228fc0a483252e0b7e72c73cfb25ed401bedaf856f5')
|
||||
|
||||
cdToPkg(){
|
||||
cd "tidal-hifi-$pkgver"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cdToPkg
|
||||
|
||||
# install build dependencies
|
||||
npm install
|
||||
}
|
||||
|
||||
build() {
|
||||
cdToPkg
|
||||
|
||||
# We are not using the systems Electron as we need castlab's Electron.
|
||||
npx electron-builder --linux dir
|
||||
}
|
||||
|
||||
package() {
|
||||
cdToPkg
|
||||
|
||||
install -d "${pkgdir}/opt/${_pkgname}/" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/doc" "${pkgdir}/usr/share/licenses"
|
||||
|
||||
cp -r dist/linux-unpacked/* "${pkgdir}/opt/${_pkgname}/"
|
||||
chmod +x "${pkgdir}/opt/${_pkgname}/${_pkgname}"
|
||||
|
||||
ln -s "/opt/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
|
||||
|
||||
install -Dm 644 "build/icon.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
|
||||
install -Dm 644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
|
||||
|
||||
install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||
install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
ln -s "/opt/${_pkgname}/LICENSE.electron.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
|
||||
ln -s "/opt/${_pkgname}/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
|
||||
}
|
18
build/linux/arch/install.sh
Normal file
18
build/linux/arch/install.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Will generate a correctly formatted SRCINFO file
|
||||
|
||||
SCRIPT_DIST=".SRCINFO"
|
||||
|
||||
# generate SRCINFO
|
||||
makepkg --printsrcinfo > $SCRIPT_DIST
|
||||
|
||||
# replace pkgbase with tidal-hifi-git
|
||||
pkgName="tidal-hifi-git"
|
||||
sed -i "1s/.*/pkgbase = $pkgName/" $SCRIPT_DIST
|
||||
|
||||
# replace pkgbase with tidal-hifi-git
|
||||
sed -i '/^pkgname/ d' $SCRIPT_DIST
|
||||
echo "pkgname = $pkgName" >> $SCRIPT_DIST
|
||||
|
||||
# remove double line breaks and replace with single line breaks
|
||||
sed -i '/^$/N;/^\n$/D' $SCRIPT_DIST
|
12
build/linux/arch/tidal-hifi.desktop
Normal file
12
build/linux/arch/tidal-hifi.desktop
Normal file
@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=tidal-hifi
|
||||
GenericName=tidal-hifi
|
||||
Comment=The web version of listen.tidal.com running in electron with hifi support thanks to widevine.
|
||||
Exec=tidal-hifi %u
|
||||
Icon=tidal-hifi.png
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Network;Application;Audio;Video
|
||||
StartupWMClass=tidal-hifi
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tidal-hifi",
|
||||
"version": "0.5.1",
|
||||
"version": "0.5.0",
|
||||
"description": "Tidal on Electron with widevine(hifi) support",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user