diff options
author | Sukanka | 2022-01-01 16:30:27 +0800 |
---|---|---|
committer | Sukanka | 2022-01-01 16:30:27 +0800 |
commit | b99194e4a0640871d90bb4912d0b6295cc5fce4e (patch) | |
tree | aabea74bd4c66e1ba743088acbaff6a5866009c7 | |
download | aur-b99194e4a0640871d90bb4912d0b6295cc5fce4e.tar.gz |
first push
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | dida.sh | 2 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ef088fd88585 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = dida-bin + pkgdesc = Official Dida client, a todo list. + pkgver = 0.0.1 + pkgrel = 1 + url = https://dida365.com/home + arch = any + license = BSD + depends = electron + provides = dida + source = dida_0.0.1-any.deb::https://cdn.dida365.cn/download/linux/linux_deb_x64/dida-0.0.1-amd64.deb + source = dida.sh + sha512sums = 69252b386afc3b719df9a3635feb912e21f65770f12858e2ee4c30efe3332c828c446febc37e4d26c9334c707268edb281f5d970280ea9d13e1fd5fd9f5b0d1d + sha512sums = d4051b2f7bedd263a80b2d8e4a05bba59806f35f7b3072a8a9fc3026eade0c2f06cd9e8eea9343292db30636a71f9ae6e44a9b1c9b5871ece2d2590cdb564e72 + +pkgname = dida-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c9a59163ea2f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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.1 +pkgrel=1 +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=('69252b386afc3b719df9a3635feb912e21f65770f12858e2ee4c30efe3332c828c446febc37e4d26c9334c707268edb281f5d970280ea9d13e1fd5fd9f5b0d1d' + '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} +} diff --git a/dida.sh b/dida.sh new file mode 100644 index 000000000000..b9f87e620de4 --- /dev/null +++ b/dida.sh @@ -0,0 +1,2 @@ +#!/usr/bin/sh +electron /usr/share/dida/dida.asar "$@" |