# Template file for 'tidal-hifi-bin' pkgname=tidal-hifi-bin version=5.11.0 revision=1 archs="x86_64" homepage="https://github.com/Mastermindzh/tidal-hifi" license="MIT" depends="gtk+3 libXScrnSaver nss" short_desc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine." maintainer="luca " distfiles="https://github.com/Mastermindzh/tidal-hifi/releases/download/${version}/tidal-hifi-${version}.tar.gz" pre_fetch() { if ! cd "$XBPS_SRCDISTDIR"; then msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n" exit 1 fi url="${distfiles}" distfile="$(basename "$url")" flock "${distfile}.part" $fetch_cmd "$url" flock -n "${distfile}.part" rm -f "${distfile}.part" checksum=$(${XBPS_DIGEST_CMD} "$distfile") mkdir -p "$XBPS_SRCDISTDIR/by_sha256" mv "$distfile" "$XBPS_SRCDISTDIR/by_sha256/${checksum}_${distfile}" } do_install() { vmkdir "usr/share/pixmaps/" vcopy "${FILESDIR}/tidal-hifi.png" "usr/share/pixmaps/" vmkdir "usr/share/applications/" vcopy "${FILESDIR}/tidal-hifi.desktop" "usr/share/applications/" vmkdir "opt/tidal-hifi/" vcopy * "opt/tidal-hifi/" vmkdir "usr/bin/" ln -s "/opt/tidal-hifi/tidal-hifi" "${DESTDIR}/usr/bin/" vlicense LICENSE.electron.txt vlicense LICENSES.chromium.html }