Package Details: ytmdesktop-git 2.0.2.r3.g64bcf78-2

Git Clone URL: https://aur.archlinux.org/ytmdesktop-git.git (read-only, click to copy)
Package Base: ytmdesktop-git
Description: A desktop app for YouTube Music
Upstream URL: https://ytmdesktop.app
Licenses: GPL-3.0-or-later
Conflicts: ytmdesktop
Provides: ytmdesktop
Submitter: garfunkel
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 8
Popularity: 0.000194
First Submitted: 2019-10-09 09:53 (UTC)
Last Updated: 2024-09-21 17:04 (UTC)

Pinned Comments

yochananmarqos commented on 2023-08-31 17:51 (UTC) (edited on 2023-08-31 18:10 (UTC) by yochananmarqos)

PSA: This now uses electron-forge instead of electron-builder. If anyone has any ideas how to build it with the system Electron like before, let me know.

Latest Comments

« First ‹ Previous 1 2 3 4

garfunkel commented on 2020-01-03 08:58 (UTC) (edited on 2020-01-03 08:58 (UTC) by garfunkel)

libxss is indeed a hard dependency - fixed. As far as I can determine, java-runtime is certainly not a dependency (at least ytmdesktop and it's bundled electron does not make use of it).

install file removed - thanks, did not know this has changed.

I'll fix some of the other issues shortly (a couple of them I am skeptical about...) - right now, this is failing to build.

yochananmarqos commented on 2019-11-02 21:14 (UTC)

@sarpik: Thanks, edited.

sarpik commented on 2019-11-02 16:09 (UTC) (edited on 2019-11-02 16:10 (UTC) by sarpik)

@yochananmarqos In the link library part, you forgot the first / before opt:

.........\/ you need a / here

ln -s "opt/${pkgname%-git}/youtube-music-desktop-app" "$pkgdir/usr/bin/${pkgname%-git}"

yochananmarqos commented on 2019-10-09 21:30 (UTC) (edited on 2019-11-02 21:14 (UTC) by yochananmarqos)

  • Don't create unnecessary variables
  • This does not appear to be available for all architectures
  • The license is CC0 1.0 Universal (CC0-1.0) and is in /src/ytmdesktop. You don't need to copy the electron or chromium licenses anywhere, they're already included. Licenses go in /usr/share/licenses/*pkgname*.
  • Electron applications require both nss and libxss. It also appears java-runtime is required.
  • The install file is not required. The desktop cache is updated automatically since pacman 5.0
  • Use a temporary npm cache instead of polluting the user's home directory. See package guidelines
  • Loose files should be installed in /opt/
  • Use install instead of mkdir
pkgname=ytmdesktop-git
pkgver=1.5.0.1.g5829af5
pkgrel=1
pkgdesc="A desktop app for YouTube Music"
arch=('i686' 'x86_64')
url="https://ytmdesktop.app"
license=('CC0-1.0')
depends=('gtk3' 'nss' 'libxss' 'java-runtime')
makedepends=('git' 'npm')
optdepends=('gnome-keyring' 'lsb-release' 'avahi' 'nss-mdns')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/ytmdesktop/ytmdesktop.git'
        "${pkgname%-git}.desktop")
md5sums=('SKIP'
         '63a9f7d805c871f6556aa0e1aa0ef74c')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    git describe --tags | sed 's/^v//' | sed 's/-/./g'
}

build() {
    cd "$srcdir/${pkgname%-git}"
    rm -rf node_modules
    npm install --cache "$srcdir/npm-cache"

    if [ $CARCH = "x86_64" ]; then
        npm run pack:x64
    elif [ $CARCH = "i686" ]; then
        npm run pack
    fi
}

package() {
    cd "$srcdir/${pkgname%-git}"

    # install license
    install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE.md"

    # install icon
    install -Dm644 assets/favicon.512x512.png "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"

    # copy application files
    install -dm755 "$pkgdir/opt/${pkgname%-git}"
    cp -r dist/linux-unpacked/* "$pkgdir/opt/${pkgname%-git}"

    # link binary
    install -dm755 "$pkgdir/usr/bin"
    ln -s "/opt/${pkgname%-git}/youtube-music-desktop-app" "$pkgdir/usr/bin/${pkgname%-git}"

    # install desktop entry
    install -Dm644 "$srcdir/${pkgname%-git}.desktop" "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
}