blob: 0984b804ee113d8d55be25c2de0f12f516134aa7 (
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
59
60
61
62
63
64
65
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=xunscore-bin
_pkgname=Xunscore
pkgver=1.3.13.03
pkgrel=3
pkgdesc='A music notation software, let you easily create and share sheet music. The editor is called "xūn", is hoping it will be a better balance between the Chinese national music'
arch=('x86_64')
url="https://www.xunscore.cn"
_giteeurl="https://gitee.com/xunscore/xunapp"
license=('LicenseRef-custom')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'libglvnd'
'libxrender'
'libx11'
'gst-plugins-base-libs'
'libxext'
'libxkbcommon'
'fontconfig'
'libxkbcommon-x11'
'gstreamer'
'libpulse'
'freetype2'
'libxcb'
'alsa-lib'
'libsndfile'
'qt5-base'
)
makedepends=(
'gendesk'
'imagemagick'
)
options=(
'!emptydirs'
)
noextract=("${pkgname%-bin}-${pkgver}.zip")
source=(
"${pkgname%-bin}-${pkgver}.zip::${url}/${pkgname%-bin}-ubt-${pkgver}.zip"
"${pkgname%-bin}.ico::${url}/favicon.ico"
"LICENSE"
"${pkgname%-bin}.sh"
)
sha256sums=('54adaace209ec36dcdf739a6e5710c002df47c3bab180aa2025721c72d2c1803'
'e6f9d163300a261baeb5e4865c2d5877ebe16c06127a799c1b3f33c6441023bb'
'93c773a0b8e2e2926f4178d4626c23a78fe2ce2473198eb0a9bf6f1ae52d928d'
'20acff6b7caae22bc23e515772f7da6802c9fac0313c0ca272282b89c770046f')
build() {
sed -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${pkgname%-bin}/g
" -i "${srcdir}/${pkgname%-bin}.sh"
gendesk -q -f -n --pkgname="${pkgname%-bin}" --pkgdesc="${pkgdesc}" --categories="AudioVideo" --name="${_pkgname}" --exec="${pkgname%-bin} %U"
install -Dm755 -d "${srcdir}/usr/lib"
bsdtar -xf "${srcdir}/${pkgname%-bin}-${pkgver}.zip" -C "${srcdir}/usr/lib"
chmod 644 "${srcdir}/usr/lib/${pkgname%-bin}/soundfonts/metronome.sf2"
magick "${srcdir}/${pkgname%-bin}.ico" "${srcdir}/${pkgname%-bin}.png"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
cp -r "${srcdir}/usr" "${pkgdir}"
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
}
|