diff options
author | RimuwuW | 2021-06-30 12:38:20 +0800 |
---|---|---|
committer | RimuwuW | 2021-06-30 12:38:20 +0800 |
commit | 5dcc579a89c0ae1c3f98965598c8010a5d861ad5 (patch) | |
tree | 0cabb86f9fea1c4640e8fae5a4d62108f26cb9ee | |
parent | 7fbb0bdb22e91c68f6511255ed5ba98e89a75723 (diff) | |
download | aur-5dcc579a89c0ae1c3f98965598c8010a5d861ad5.tar.gz |
Make KDE happy (Thanks to @kearneyBack)
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 6 insertions, 13 deletions
@@ -1,7 +1,7 @@ pkgbase = yesplaymusic pkgdesc = A third party music application for Netease Music pkgver = 0.4.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/qier222/YesPlayMusic arch = x86_64 license = MIT @@ -22,4 +22,3 @@ pkgbase = yesplaymusic md5sums = 84a7b9991c998390d8e676182d7f18e0 pkgname = yesplaymusic - @@ -2,7 +2,7 @@ pkgname=yesplaymusic pkgver=0.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="A third party music application for Netease Music" arch=("x86_64") url="https://github.com/qier222/YesPlayMusic" @@ -30,30 +30,24 @@ source=( md5sums=('84a7b9991c998390d8e676182d7f18e0') package() { - cd ${srcdir} tar -xvf YesPlayMusic-${pkgver}.pacman -C ${pkgdir} - - # remove exsiting files + # Remove exsiting files rm -f ${pkgdir}/.PKGINFO ${pkgdir}/.MTREE ${pkgdir}/.INSTALL - + # Make KDE happy :) + echo 'Comment[zh_CN]=高颜值的第三方网易云播放器' >> ${pkgdir}/usr/share/applications/yesplaymusic.desktop + sed -i -E "s|Categories=Music;|Categories=Music;AudioVideo;Player;|" ${pkgdir}/usr/share/applications/yesplaymusic.desktop } post_install() { - # Link to the binary ln -sf '/opt/YesPlayMusic/yesplaymusic' '/usr/bin/yesplaymusic' - # SUID chrome-sandbox for Electron 5+ chmod 4755 '/opt/YesPlayMusic/chrome-sandbox' || true - update-mime-database /usr/share/mime || true update-desktop-database /usr/share/applications || true - } post_remove() { - rm -f '/usr/bin/yesplaymusic' - } |