Guest User

youtube-music-appimage

a guest
Aug 26th, 2020
36
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Yamato Kobayashi <yk.ymadd@gmail.com>
  2.  
  3. pkgname=youtube-music-appimage
  4. _pkgname=YouTube.Music.Desktop.App
  5. pkgver=1.12.0
  6. pkgrel=1
  7. epoch=
  8. pkgdesc="A desktop app for YouTube Music"
  9. arch=('x86_64')
  10. url="https://ytmdesktop.app"
  11. license=('CC0 1.0 Universal')
  12. makedepends=('git')
  13. source=("https://github.com/ytmdesktop/ytmdesktop/releases/download/v${pkgver}/${_pkgname}-${pkgver}.AppImage"
  14. "https://raw.githubusercontent.com/ytmdesktop/ytmdesktop/master/LICENSE.md"
  15. "youtube-music.desktop")
  16. noextract=('${_pkgname}-${pkgver}.AppImage')
  17. options=(!strip)
  18. sha256sums=(
  19. a48bbd8ac2e093a218e3bdc66806f8f068603687d8b51d0b595874f6cb2e6b2b
  20. 33c4de6d76721945c9346b3b1024fe56f2fbb6bebbb0e761656232520a6defa6
  21. 4c328cb3457c355ac7eec7778971abe962c283f3883d9f360a6c3352d3950ae6
  22. )
  23.  
  24. prepare(){
  25. chmod +x $_pkgname-$pkgver.AppImage
  26. ./$_pkgname-$pkgver.AppImage --appimage-extract
  27. }
  28.  
  29. package() {
  30. # install license
  31. install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/ytmdesktop/LICENSE.md"
  32.  
  33. # install icon
  34. install -Dm644 "${srcdir}/squashfs-root/youtube-music-desktop-app.png" "${pkgdir}/usr/share/pixmaps/ytmdesktop.png"
  35.  
  36. # install appimage
  37. install -Dm755 ${_pkgname}-${pkgver}.AppImage "${pkgdir}/usr/bin/youtube-music"
  38.  
  39. # install desktop entry
  40. install -Dm755 youtube-music.desktop "${pkgdir}/usr/share/applications/youtube-music.desktop"
  41. }
  42.  
RAW Paste Data