blob: e26330ae305384c643b94d9620fd6ed270c24394 (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_officalname=ttplayer
pkgname="deepin-wine-${_officalname}"
_sparkname="com.qianqian.${_officalname}.spark"
_runname=TTPlayer
pkgver=5.7
pkgrel=8
pkgdesc="千千静听是一款完全免费的音乐播放软件,集播放、音效、转换、歌词等众多功能于一身。利用DeepinWine6重新进行封装。"
arch=("x86_64")
url="https://www.baidu.com/"
_downurl=https://d.store.deepinos.org.cn/store
license=('LicenseRef-Freeware')
conflicts=("${_officalname}")
provides=("${_officalname}=${pkgver}")
depends=(
'deepin-wine6-stable'
'spark-dwine-helper'
'xdg-utils'
'p7zip'
)
optdepends=(
'wqy-microhei'
'wqy-zenhei'
)
install="${pkgname}.install"
source=(
"${pkgname}-${pkgver}.deb::${_downurl}/music/${_sparkname}/${_sparkname}_${pkgver}.spark0_i386.deb"
"${pkgname}.sh"
)
sha256sums=('4494df38c9bc9c47e697e8a96f69c678e4635389ccc74e19dd324f0a668c62ec'
'b336ecc61a867ed21cb6a0384e68d1e2605971523adcbc0b08056e6353bc0201')
build() {
sed -e "s|@runname@|${_runname}|g" \
-e "s|@pkgver@|${pkgver}|g" \
-e "s|@pkgname@|${pkgname}|g" \
-i "${srcdir}/${pkgname}.sh"
bsdtar -xf "${srcdir}/data."*
mv "${srcdir}/opt/apps/${_sparkname}" "${srcdir}/opt/apps/${pkgname}"
sed "s|${_sparkname}|${pkgname}|g;s|Music|AudioVideo|g;s|/opt/apps/${pkgname}/files/run.sh|${pkgname}|g" \
-i "${srcdir}/opt/apps/${pkgname}/entries/applications/${_sparkname}.desktop"
rm -rf "${srcdir}/opt/apps/${pkgname}/info"
}
package() {
cp -r "${srcdir}/opt" "${pkgdir}"
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/opt/apps/${pkgname}/entries/applications/${_sparkname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 "${srcdir}/opt/apps/${pkgname}/entries/icons/hicolor/scalable/apps/${_sparkname}.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
}
|