Advertisement
yochananmarqos

Untitled

Aug 24th, 2020 (edited)
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.31 KB | None | 0 0
  1. pkgname=tauon-music-box
  2. _pkgname=tauonmb
  3. _gitname=TauonMusicBox
  4. pkgver=6.2.1
  5. pkgrel=2
  6. pkgdesc="A modern streamlined music player"
  7. arch=('any')
  8. url="https://tauonmusicbox.rocks"
  9. license=('GPL3')
  10. depends=('python-pillow'
  11.          'python-pylast'
  12.          'python-flask'
  13.          'python-hsaudiotag3k'
  14.          'python-pysdl2'
  15.          'python-stagger'
  16.          'python-send2trash'
  17.          'python-pylyrics'
  18.          'python-musicbrainzngs'
  19.          'python-discogs-client'
  20.          'python-isounidecode'
  21.          'python-setproctitle'
  22.          'python-gobject'
  23.          'python-cairo'
  24.          'python-beautifulsoup4'
  25.          'python-requests'
  26.          'python-dbus'
  27.          'python-oauthlib'
  28.          'python-six'
  29.          'alsa-plugins'
  30.          'ffmpeg'
  31.          'flac'
  32.          'gst-plugins-bad'
  33.          'gst-plugins-ugly'
  34.          'noto-fonts-extra'
  35.          'noto-fonts-cjk'
  36.          'sdl2_image'
  37.          'xdg-utils')
  38. optdepends=('p7zip: 7z archive extraction support'
  39.             'unrar: RAR archive extraction support'
  40.             'python-plexapi: Plex streaming'
  41.             'python-pypresence: Discord status support'
  42.             'python-tekore: Spotify playback control'
  43.             'picard: Tag editing')
  44. source=("$pkgname-$pkgver.tar.gz::https://github.com/Taiko2k/TauonMusicBox/archive/v$pkgver.tar.gz")
  45. sha256sums=('90ac549dd86467dfeeb1bb9a5282bc08f48300294b6466a8902e2f18fd381873')
  46.  
  47. prepare() {
  48.     cd "$_gitname-$pkgver"
  49.     sed -i 's|tauonmb.sh %U|tauon.py "$@"|g' "extra/$_pkgname.desktop"
  50. }
  51.  
  52. build() {
  53.     cd "$_gitname-$pkgver"
  54.     python compile-translations.py
  55. }
  56.  
  57. package() {
  58.     cd "$_gitname-$pkgver"
  59.     install -Dm755 tauon.py -t "$pkgdir/opt/$pkgname"
  60.     install -d "$pkgdir/usr/bin"
  61.     ln -s "/opt/$pkgname/tauon.py" "$pkgdir/usr/bin/$_pkgname"
  62.  
  63.     install -Dm644 input.txt -t "$pkgdir/opt/$pkgname"
  64.     cp -r  assets templates theme t_modules "$pkgdir/opt/$pkgname"
  65.  
  66.     for t in de fr_FR ja_JP nb_NO pt_BR pt_PT sv zh_CN; do
  67.         install -Dm644 locale/${t}/LC_MESSAGES/*.mo -t "$pkgdir/usr/share/locale/${t}/LC_MESSAGES"
  68.     done
  69.  
  70.     install -Dm644 "extra/$_pkgname.desktop" -t "$pkgdir/usr/share/applications"
  71.     install -Dm644 "extra/$_pkgname-symbolic.svg" -t "$pkgdir/usr/share/icons/hicolor/symbolic/apps"
  72.     install -Dm644 "extra/$_pkgname.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement