aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e330c36a414676d48cf8d41943fd31c243ae080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: AiCorein melodyecho@glowmem.com
# URL: https://aur.archlinux.org/packages/com.163.music.spark
# URL: https://github.com/AiCorein/arch-wine-neteasemusic
pkgname=com.163.music.spark
pkgver=3.0.1.202031spark12
pkgrel=1
pkgdesc="Netease Music Wine Client from Spark Store"
url="https://music.163.com/"
arch=('x86_64')
depends=(
    'bash'
    'hicolor-icon-theme'
    'lib32-glibc'
    'lib32-libx11'
    'lib32-libxext'
    'spark-dwine-helper'
    'wine'
    'xdg-utils'
)
optdepends=(
    'wqy-microhei: recommended font'
    'wqy-zenhei: recommended font'
)
_mirror="https://mirrors.sdu.edu.cn/spark-store-repository"
source=("${_mirror}/store/music/${pkgname}/${pkgname}_${pkgver}_amd64.deb")
md5sums=('e080e1398b77ab34fab93e41065c88b2')

package() {
    cd "${pkgdir}"
    bsdtar -xpvf "${srcdir}/data.tar.xz"
    install -d usr/share
    mv opt/apps/${pkgname}/entries/* usr/share
    sed -i 's/"deepin-wine8-stable"/"wine"/' opt/apps/${pkgname}/files/run.sh
    rmdir opt/apps/${pkgname}/entries/
    rm opt/apps/${pkgname}/info
    chown -R root:root .
}