blob: 9031d902e093f5e118fc0eba5fbe034bd09419e5 (
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
|
# Maintainer: ArcanusNEO <admin@transcliff.top>
# Contributor: zhullyb < zhullyb [at] outook dot com >
# Contributor: sukanka < su975853527 [at] gmail dot com >
pkgname=adrive
url="https://www.aliyundrive.com/"
pkgrel=7
pkgver=4.9.16
pkgdesc="阿里云盘官方客户端app.asar提取版,直接调用系统electron运行"
arch=("x86_64")
license=("custom")
_electron=electron
depends=("$_electron" "python")
makedepends=('p7zip')
source=(
"https://cdn.aliyundrive.net/downloads/apps/desktop/aDrive-4.9.16.exe"
"aDrive.desktop"
"aDrive.png"
"aDrive.py"
)
sha256sums=('bb36e6204d6be7073ca9b13f273b55f788cd48dc9a849251a26b3239438b08d4'
'057a9d329fce8775df05f24f108a280dbe3202381f8bc841c273ee34c6ae8b35'
'fc2493439b0766992698acd3a7c74a1a90d2877699442b1d7c410d8606d74244'
'238bcc948112710018e7fe6abfb5f4238ea5aef189271b7deeb88917f925865f')
prepare() {
7z x aDrive-4.9.16.exe -o"${srcdir}/aDrive"
cat >aDrive.sh <<EOF
#!/bin/sh
set -eu
export ELECTRON_FORCE_IS_PACKAGED=true
export ELECTRON_IS_DEV=0
exec $_electron --no-sandbox /usr/lib/aDrive/app.asar "\$@"
EOF
}
package() {
install -Dm644 ${srcdir}/aDrive/resources/app.asar -t ${pkgdir}/usr/lib/aDrive/
install -Dm644 ${srcdir}/aDrive.png -t ${pkgdir}/usr/lib/aDrive/
mkdir -p ${pkgdir}/usr/share/icons/hicolor/256x256/apps/
ln -s /usr/lib/aDrive/aDrive.png ${pkgdir}/usr/share/icons/hicolor/256x256/apps/aDrive.png
install -Dm644 ${srcdir}/aDrive.desktop -t ${pkgdir}/usr/share/applications/
install -Dm755 ${srcdir}/aDrive.sh ${pkgdir}/usr/lib/aDrive/aDrive.sh
install -Dm755 ${srcdir}/aDrive.py ${pkgdir}/usr/bin/aDrive
}
|