blob: 223c4d253b6d0018fba359efc54d661cb0ef1d89 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=jidugs-appimage
pkgname=jidugs
pkgver=1.4.3
pkgrel=0
pkgdesc="极度公式 公式一键识别快速转换,几十项技术创新助力,快捷方便!"
arch=('x86_64')
url="https://jidugs.wlhex.com/"
license=('custom' 'Commercial')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(glibc
hicolor-icon-theme
zlib)
makedepends=()
backup=()
options=(!strip !debug)
install=
source_x86_64=("${pkgname}-${pkgver}-x86_64.AppImage::https://jidugs.wlhex.com/download/极度公式-${pkgver}.AppImage")
sha256sums_x86_64=('a0d1b7ed6222f564f66a24a16d4cf5d2589aeb00786d8501919ba941291b9201')
_install_path="/opt/appimages"
prepare() {
chmod a+x ${pkgname}-${pkgver}-${CARCH}.AppImage
"./${pkgname}-${pkgver}-${CARCH}.AppImage" --appimage-extract >/dev/null
sed 's|AppRun|/opt/appimages/jidugs.AppImage|g' -i "${srcdir}/squashfs-root/jidugspc.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname}-${pkgver}-${CARCH}.AppImage" "${pkgdir}/${_install_path}/${pkgname}.AppImage"
local _icon
for _icon in 16 32 64 128 256 512 1024; do
install -Dm0644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icon}x${_icon}/apps/jidugspc.png" \
-t "${pkgdir}/usr/share/icons/hicolor/${_icon}x${_icon}/apps"
done
install -Dm644 "${srcdir}/squashfs-root/jidugspc.desktop" -t "${pkgdir}/usr/share/applications"
# install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|