2019-12-02 22:24:29 +01:00
|
|
|
# Maintainer: Rick van Lieshout <info@rickvanlieshout.com>
|
|
|
|
|
|
|
|
_pkgname=tidal-hifi
|
|
|
|
pkgname="$_pkgname-git"
|
2021-04-25 18:49:27 +02:00
|
|
|
pkgver=2.2.0
|
2019-12-02 22:24:29 +01:00
|
|
|
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")
|
2021-04-25 18:49:27 +02:00
|
|
|
sha512sums=('dcbef53cdbf64256d75a0a677e6af1e53d90cdea3028e50fa953eb59475fc9affb76cb426d1293b4f9c9d2e48156481789d7f44d4858a64b4d297c1908aada53'
|
2020-10-04 11:56:08 +02:00
|
|
|
'35f38ac308b871c1822d7f6f760f2fb54c3748cf769822cb0f0dfb90f0f5754ba9316da5e903a0d2e9839de3a43ec76f238f3f2e44021956fa1da19142081349')
|
2019-12-02 22:24:29 +01:00
|
|
|
|
|
|
|
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.
|
2020-10-05 11:19:22 +02:00
|
|
|
npm run build-arch
|
2019-12-02 22:24:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|