blob: f323602b32de9427e7493f1bd543aad556b29c05 (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=winghexexplorer-bin
_pkgname=WingHexExplorer
_appname="com.wingsummer.${pkgname%-bin}"
pkgver=1.5.5
pkgrel=7
pkgdesc="基于 QT 编写的十六进制编辑器,采用 C++ 进行开发,目的是让 Deepin 上具有强大而免费的十六进制编辑器。"
arch=('x86_64')
url="https://github.com/Wing-summer/WingHexExplorer"
license=('AGPL-3.0-only')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'qt5-base'
'qt5-x11extras'
'libglvnd'
'hicolor-icon-theme'
'dtkgui'
'dtkcore'
'dtkwidget'
)
options=('!strip')
source=(
"${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/${pkgver}/${_appname}_${pkgver}_amd64.deb"
"${pkgname%-bin}.sh"
)
sha256sums=('6d4d3ec3f90e91d3590758597c01eddc1eb1e1dba5e310bbd485f588ffbe9625'
'bce7a3708a81615c6f5f43d0b74166db00ad4e95b847f0d411ff4140fe1319bc')
build() {
sed -e "s|@appname@|${pkgname%-bin}|g" \
-e "s|@runname@|${_pkgname}|g" \
-i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
mv "${srcdir}/opt/${_pkgname}/更新日志.log" "${srcdir}/opt/${_pkgname}/ChangeLog.log"
mv "${srcdir}/opt/${_pkgname}/使用说明.txt" "${srcdir}/opt/${_pkgname}/ReadMe.txt"
cp "${srcdir}/opt/${_pkgname}/images/icon.png" "${srcdir}/opt/${_pkgname}/images/winghexpro256.png"
sed "s|\"/opt/${_pkgname}/${_pkgname}\"|${pkgname%-bin}|g;s|/opt/${_pkgname}/images/icon.png|${pkgname%-bin}|g" \
-i "${srcdir}/usr/share/applications/${_appname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -r "${srcdir}/opt/${_pkgname}/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/usr/share/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
for _icons in 32 64 128 256; do
install -Dm644 "${srcdir}/opt/${_pkgname}/images/winghexpro${_icons}.png" \
"${pkgdir}/usr/share/icons/hicolor/${_icons}x${_icons}/apps/${pkgname%-bin}.png"
done
install -Dm644 "${srcdir}/opt/${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|