blob: 8e50d543fa6eb9a52d687ecbe23c75f9d8075c3f (
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
|
# Maintainer: zero <zero@localhost>
# Automatically updated by GitHub Actions
pkgname=zerx-lab-dida365-bin
pkgver=8.0.10
pkgrel=1
pkgdesc="滴答清单 - 跨平台 Todo & Task Manager"
arch=('x86_64')
url="https://dida365.com"
license=('LicenseRef-proprietary')
depends=(
'alsa-lib'
'at-spi2-core'
'cairo'
'dbus'
'expat'
'gtk3'
'libcups'
'libdrm'
'libnotify'
'libsecret'
'libxcomposite'
'libxdamage'
'libxext'
'libxfixes'
'libxkbcommon'
'libxrandr'
'libxss'
'libxtst'
'nspr'
'nss'
'pango'
'xdg-utils'
)
optdepends=('libappindicator: 系统托盘图标支持'
'libayatana-appindicator: 系统托盘图标支持(Ayatana)')
provides=('dida' 'dida365')
conflicts=('dida' 'dida365')
options=('!strip')
source_x86_64=("dida-${pkgver}-amd64.deb::https://dida365.com/static/getApp/download?type=linux_deb_x64")
sha256sums_x86_64=('cf3e25f360d55924f5f2aca7ebe6dc7866f645d596df011e47a01eabb5e3d183')
package() {
cd "$srcdir"
# 解压 .deb 文件
ar x "dida-${pkgver}-amd64.deb"
# 将 data.tar.xz 解压到 $pkgdir
bsdtar -xf data.tar.xz -C "$pkgdir"
# 创建 /usr/bin/dida 符号链接(postinst 里做的事)
install -d "$pkgdir/usr/bin"
ln -sf '/opt/dida/dida' "$pkgdir/usr/bin/dida"
# 设置 chrome-sandbox 的 SUID(Electron 5+ 必须)
chmod 4755 "$pkgdir/opt/dida/chrome-sandbox"
}
|