blob: 95b1de1c10192d8b4b88401e305cd050026ca726 (
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
60
61
|
# Maintainer: ArcanusNEO <admin@transcliff.top>
# Contributor: zhullyb < zhullyb [at] outook dot com >
# Contributor: sukanka < su975853527 [at] gmail dot com >
pkgname=aliyunpan-gaozhangmin-bin
_pkgname=XBYDriver
url="https://github.com/gaozhangmin/aliyunpan"
pkgrel=1
pkgver=3.13.5
pkgdesc="阿里云盘小白羊版,gaozhangmin's fork"
arch=("any")
license=("MIT")
_electron=electron22
depends=("$_electron" 'aria2' 'alist-bin')
optdepends=('mpv: media preview support')
provides=("aliyunpan-odomu")
conflicts=("aliyunpan-odomu")
source=(
"${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-amd64.deb"
"aliyunpan-gaozhangmin.desktop"
)
sha256sums=('59dc465b59d149922278db38a78a1140921b37b312ae7f31640af99c261d7e3a'
'8dc19ab03306c3498b30659ebd8c1922e9145dd6b7851207f645bc33806ad63b')
prepare() {
tar -xf data.tar.xz -C "${srcdir}"
cat > aliyunpan-gaozhangmin.sh <<EOF
#!/bin/sh
set -eu
export ELECTRON_FORCE_IS_PACKAGED=true
export ELECTRON_IS_DEV=0
exec $_electron --no-sandbox /usr/lib/aliyunpan-gaozhangmin/app.asar "\$@"
EOF
}
package() {
install -Dm644 ${srcdir}/opt/小白羊云盘/resources/app.asar \
-t ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/
cp -a ${srcdir}/opt/小白羊云盘/resources/crx/ ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/
mkdir -p ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/engine
install -Dm644 ${srcdir}/opt/小白羊云盘/resources/engine/aria2.conf \
-t ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/engine/
ln -s /usr/bin/aria2c ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/engine/
ln -s /usr/bin/alist ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/engine/
cp -a ${srcdir}/opt/小白羊云盘/resources/images/ ${pkgdir}/usr/lib/aliyunpan-gaozhangmin/
mkdir -p ${pkgdir}/usr/share/icons
ln -s /usr/lib/aliyunpan-gaozhangmin/images/icon_256x256.png \
${pkgdir}/usr/share/icons/aliyunpan-gaozhangmin.png
# fix windows icon
_desktopFileName=xbyyunpan
install -Dm644 ${srcdir}/aliyunpan-gaozhangmin.desktop \
${pkgdir}/usr/share/applications/${_desktopFileName}.desktop
install -Dm755 ${srcdir}/aliyunpan-gaozhangmin.sh ${pkgdir}/usr/bin/aliyunpan-gaozhangmin
}
# vim: set sw=2 ts=2 et:
|