aur/PKGBUILD

42 lines
1 KiB
Bash
Raw Normal View History

2021-03-06 15:59:52 +01:00
# Maintainer: Clansty <i@gao4.pw>
2021-02-03 13:00:11 +01:00
2021-03-06 15:59:52 +01:00
pkgname=yesplaymusic-electron
2021-01-31 15:18:24 +01:00
pkgver=0.3.3
2021-02-03 13:00:11 +01:00
pkgrel=2
2021-03-06 15:59:52 +01:00
pkgdesc="A third party music application for Netease Music. Using the system electron"
arch=("any")
2021-01-29 16:37:33 +01:00
url="https://github.com/qier222/YesPlayMusic"
license=("MIT")
depends=(
"gtk3"
"nss"
2021-03-06 15:59:52 +01:00
"electron"
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-03-06 15:59:52 +01:00
yesplaymusic.desktop
2021-01-28 19:47:30 +01:00
)
2021-03-06 15:59:52 +01:00
md5sums=('86515dd0022d5e84112cbdb9dd9842d1'
'107bf43817d58d29486823343ea36050')
2021-01-28 19:47:30 +01:00
package() {
2021-03-06 15:59:52 +01:00
cp -r "usr" "${pkgdir}"
rm "${pkgdir}/usr/share/applications/yesplaymusic.desktop"
install -d "${pkgdir}/usr/share"
install -Dm644 -t "${pkgdir}/usr/share/applications" "yesplaymusic.desktop"
install -Dm644 "opt/YesPlayMusic/resources/app.asar" "${pkgdir}/usr/share/yesplaymusic.asar"
2021-01-28 19:47:30 +01:00
}