2021-02-03 13:00:11 +01:00
|
|
|
# Maintainer: Qingxu <qingxu@qingxu.live>
|
|
|
|
|
2021-01-28 19:47:30 +01:00
|
|
|
pkgname=yesplaymusic
|
2021-01-31 15:18:24 +01:00
|
|
|
pkgver=0.3.3
|
2021-02-03 13:00:11 +01:00
|
|
|
pkgrel=2
|
2021-01-29 16:37:33 +01:00
|
|
|
pkgdesc="A third party music application for Netease Music"
|
2021-01-28 19:47:30 +01:00
|
|
|
arch=("x86_64")
|
2021-01-29 16:37:33 +01:00
|
|
|
url="https://github.com/qier222/YesPlayMusic"
|
|
|
|
license=("MIT")
|
|
|
|
depends=(
|
|
|
|
"gtk3"
|
|
|
|
"nss"
|
2021-01-28 19:47:30 +01:00
|
|
|
)
|
2021-02-03 13:00:11 +01:00
|
|
|
optdepends=(
|
|
|
|
'c-ares'
|
|
|
|
'ffmpeg'
|
|
|
|
'http-parser'
|
|
|
|
'libevent'
|
|
|
|
'libvpx'
|
|
|
|
'libxslt'
|
|
|
|
'minizip'
|
|
|
|
're2'
|
|
|
|
'snappy'
|
|
|
|
'libnotify'
|
|
|
|
'libappindicator-gtk3'
|
|
|
|
)
|
2021-01-28 19:47:30 +01:00
|
|
|
source=(
|
2021-02-03 13:00:11 +01:00
|
|
|
"YesPlayMusic-${pkgver}.pacman::https://github.com/qier222/YesPlayMusic/releases/download/v${pkgver}/YesPlayMusic-${pkgver}.pacman"
|
2021-01-28 19:47:30 +01:00
|
|
|
)
|
2021-01-31 15:18:24 +01:00
|
|
|
md5sums=('86515dd0022d5e84112cbdb9dd9842d1')
|
2021-01-28 19:47:30 +01:00
|
|
|
|
|
|
|
package() {
|
2021-01-29 16:37:33 +01:00
|
|
|
cd ${srcdir}
|
2021-02-03 13:00:11 +01:00
|
|
|
mv YesPlayMusic-${pkgver}.pacman YesPlayMusic-${pkgver}.pkg.tar.zst
|
2021-01-29 16:37:33 +01:00
|
|
|
tar -I zstd -xvf YesPlayMusic-${pkgver}.pkg.tar.zst -C ${pkgdir}
|
|
|
|
|
2021-02-03 13:00:11 +01:00
|
|
|
# remove exsiting files
|
|
|
|
rm -f ${pkgdir}/.PKGINFO ${pkgdir}/.MTREE ${pkgdir}/.INSTALL
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
:
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Link to the binary
|
|
|
|
ln -sf '/opt/YesPlayMusic/yesplaymusic' '/usr/bin/yesplaymusic'
|
|
|
|
|
2021-01-29 16:37:33 +01:00
|
|
|
# SUID chrome-sandbox for Electron 5+
|
2021-02-03 13:00:11 +01:00
|
|
|
chmod 4755 '/opt/YesPlayMusic/chrome-sandbox' || true
|
|
|
|
|
|
|
|
update-mime-database /usr/share/mime || true
|
|
|
|
update-desktop-database /usr/share/applications || true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
:
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Delete the link to the binary
|
|
|
|
rm -f '/usr/bin/yesplaymusic'
|
2021-01-29 16:37:33 +01:00
|
|
|
|
2021-01-28 19:47:30 +01:00
|
|
|
}
|