blob: 968cea5afbe1ca1ea884b109ef063d3720cf7f7a (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=winggifeditor-bin
_pkgname=WingGifEditor
_appname="com.wingsummer.${pkgname%-bin}"
pkgver=1.1.2
pkgrel=8
pkgdesc="A GIF editor written based on QT and developed using C++ editor written based on QT and developed using C++.基于 QT 编写的 GIF 编辑器,采用 C++ 进行开发"
arch=('x86_64')
url="https://github.com/Wing-summer/WingGifEditor"
license=('AGPL-3.0-only')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'qt5-base'
'qt5-x11extras'
'libglvnd'
'dtkcore'
'dtkgui'
'dtkwidget'
)
source=(
"${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/V${pkgver}/${_appname}_${pkgver}_amd64.deb"
"${pkgname%-bin}.sh"
)
sha256sums=('c2e56a4478a7540afa7d52819d37e9d6b30d7afb577002dd3825b928d83125b2'
'463a6423f1107da6397bca9851047e08229cbe42028804dfce146359d541846e')
build() {
sed -e "s|@appname@|${pkgname%-bin}|g" \
-e "s|@runname@|${_pkgname}|g" \
-i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
sed -e "s|\"/opt/${_pkgname}/${_pkgname}\"|${pkgname%-bin}|g" \
-e "s|/opt/${_pkgname}/images/icon.png|${pkgname%-bin}|g" \
-e "s|WingHexExplorer|${_pkgname}|g" \
-i "${srcdir}/usr/share/applications/${_appname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 "${srcdir}/opt/${_pkgname}/${_pkgname}" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/opt/${_pkgname}/lang/default.qm" -t "${pkgdir}/usr/lib/${pkgname%-bin}/lang"
install -Dm644 "${srcdir}/opt/${_pkgname}/images/icon.png" -t "${pkgdir}/usr/lib/${pkgname%-bin}/images"
install -Dm644 "${srcdir}/opt/${_pkgname}/images/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/usr/share/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/opt/${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|