summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRimuwuW2021-06-30 12:38:20 +0800
committerRimuwuW2021-06-30 12:38:20 +0800
commit5dcc579a89c0ae1c3f98965598c8010a5d861ad5 (patch)
tree0cabb86f9fea1c4640e8fae5a4d62108f26cb9ee
parent7fbb0bdb22e91c68f6511255ed5ba98e89a75723 (diff)
downloadaur-5dcc579a89c0ae1c3f98965598c8010a5d861ad5.tar.gz
Make KDE happy (Thanks to @kearneyBack)
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD16
2 files changed, 6 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a0ad94d76e74..4bc6071ab498 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
-
diff --git a/PKGBUILD b/PKGBUILD
index be0b34a18ee2..c63ee0aa0dd4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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'
-
}