blob: 315b48943dff24767ea4c5b029fa518cdd535416 (
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
|
# Maintainer: zhullyb <zhullyb [at] outlook dot com>
# Maintainer: yjun <jerrysteve1101 at gmail dot com>
# Contributor: Bruce Zhang <zttt183525594@gmail.com>
pkgname=dida-bin
_pkgname=dida
pkgver=0.0.5
pkgrel=3
pkgdesc="Official Dida client, a todo list."
arch=("any")
url="https://dida365.com/home"
license=("BSD")
depends=(electron)
provides=(${_pkgname})
source=("${_pkgname}_${pkgver}-${arch}.deb::https://cdn.dida365.cn/download/linux/linux_deb_x64/dida-${pkgver}-amd64.deb"
"${_pkgname}".sh
)
sha512sums=('6eb929337606f7874554898e8a6f5f6f679813f9caf8eb8c499dfbb4b0a18c65edf483714350fb1dc18b45c9eb09b1dff84c6cbb514c27d1f702dc12499caa7a'
'd4051b2f7bedd263a80b2d8e4a05bba59806f35f7b3072a8a9fc3026eade0c2f06cd9e8eea9343292db30636a71f9ae6e44a9b1c9b5871ece2d2590cdb564e72')
prepare(){
cd ${srcdir}
tar -Jxvf data.tar.xz -C "${srcdir}"
cp -f opt/*/resources/app.asar ${_pkgname}.asar
cd usr/share/applications
sed -i '3c Exec=dida %U' dida.desktop
}
package(){
cd ${srcdir}
mv usr ${pkgdir}
install -Dm644 ${_pkgname}.asar -t ${pkgdir}/usr/share/${_pkgname}
install -Dm755 ${_pkgname}.sh ${pkgdir}/usr/bin/${_pkgname}
}
|