blob: aa136d5cdeb139db4aced344cc3764c1e66a32f7 (
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
50
51
52
53
54
55
56
57
58
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=ttkmusicplayer-bin
_pkgname=TTKMusicPlayer
pkgver=4.1.1.0
pkgrel=1
pkgdesc="TTKMusicPlayer that imitation Kugou music, the music player uses of qmmp core library based on Qt.Prebuilt version.(支持网易云音乐、酷我音乐、酷狗音乐)"
arch=('x86_64')
url="https://github.com/Greedysky/TTKMusicPlayer"
license=(
'GPL-3.0-only'
'LGPL-3.0-only'
)
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'qt5-multimedia'
'qt5-webengine'
'qt5-x11extras'
'qt5-base'
'alsa-lib'
'qt5-declarative'
'openssl-1.0'
)
makedepends=(
'p7zip'
)
options=('!strip')
noextract=("${pkgname%-bin}-${pkgver}.7z")
source=(
"${pkgname%-bin}-${pkgver}.7z::${url}/releases/download/${pkgver}/${pkgname%-bin}-linux-x64.7z"
"${pkgname%-bin}.desktop"
"${pkgname%-bin}.sh"
)
sha256sums=('fbad39a5640c68635236921253ad064767c7ba3524d03bbcc037d228141110f2'
'26293cbcc216f141d1ec7346c225d13a14f689b4b1ab81e37da73f279082214d'
'47c425909880e36e68f338a022b066e2a4f2f51ab4ab575532e54eca2520f779')
build() {
sed -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${_pkgname}/g
s/@pkgver@/${pkgver}/g
" -i "${srcdir}/${pkgname%-bin}.sh"
install -Dm755 -d "${srcdir}/usr/lib/${pkgname%-bin}"
7z x -aoa "${srcdir}/${pkgname%-bin}-${pkgver}.7z" -o"${srcdir}/usr/lib/${pkgname%-bin}"
rm -rf "${srcdir}/usr/lib/${pkgname%-bin}/Downloads"
find "${srcdir}/usr/lib/${pkgname%-bin}" -type f -exec chmod 644 {} \;
find "${srcdir}/usr/lib/${pkgname%-bin}" -type d -exec chmod 755 {} \;
find "${srcdir}/usr/lib/${pkgname%-bin}" -type f -name "TTK*" -exec chmod 755 {} \;
chmod 755 "${srcdir}/usr/lib/${pkgname%-bin}/${pkgver}/QtWebEngineProcess"
sed -i "s/${_pkgname}.desktop/${pkgname%-bin}.desktop/g" "${srcdir}/usr/lib/${pkgname%-bin}/deploy/share/appdata/${pkgname%-bin}.appdata.xml"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
cp -Pr --no-preserve=ownership "${srcdir}/usr/lib" "${pkgdir}/usr"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/usr/lib/${pkgname%-bin}/deploy/share/pixmaps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
install -Dm644 "${srcdir}/usr/lib/${pkgname%-bin}/deploy/share/appdata/${pkgname%-bin}.appdata.xml" -t "${pkgdir}/usr/share/appdata"
}
|