summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraxionl2019-07-21 20:48:54 +0800
committeraxionl2019-07-21 20:48:54 +0800
commitc2dd9fb73c93f02109c484d3874b9bfc2fdbee4b (patch)
treed1ff65e5a1c749986430d572b66cf6aa0d7905b3
parente4139d609ec9a67fd778f8711de4d9eda98e4ac7 (diff)
downloadaur-c2dd9fb73c93f02109c484d3874b9bfc2fdbee4b.tar.gz
[Update] baidunetdisk-bin: modify the HOME environment to /home/axionl/.local/share
-rw-r--r--.SRCINFO6
-rw-r--r--0001-baidunetdisk-bin-deksktop-file.patch12
-rw-r--r--PKGBUILD11
-rw-r--r--baidunetdisk-bin.patch12
4 files changed, 20 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 342756662de..237b3ba2654 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = baidunetdisk-bin
pkgdesc = Baidu Net Disk is a cloud storage client (Linux Version).
pkgver = 2.0.1
- pkgrel = 1
+ pkgrel = 2
url = https://pan.baidu.com
arch = x86_64
license = custom
@@ -12,9 +12,9 @@ pkgbase = baidunetdisk-bin
conflicts = baidunetdisk
options = !strip
source = LICENSE.html::https://pan.baidu.com/disk/duty/index.html
- source = baidunetdisk-bin.patch
+ source = 0001-baidunetdisk-bin-deksktop-file.patch
sha256sums = 17cb003654df74201befd7daa9c0ad79d4bde67fa00a5db01a3aa3f813a8ea65
- sha256sums = 1b0652455f7897d450c8aade088c83eeff7f12c2bca265b822326d75125bfb5f
+ sha256sums = 4ac5e68e4b029fa292b7272343a0f16480c0e49fd1ab6e750939a342578fd2dd
source_x86_64 = baidunetdisk-bin-2.0.1.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/baidunetdisk_linux_2.0.1.deb
sha256sums_x86_64 = 6b7993aa75e195b00ba21aa64a743434716eba03a9c7916bde4ef81342c38e3a
diff --git a/0001-baidunetdisk-bin-deksktop-file.patch b/0001-baidunetdisk-bin-deksktop-file.patch
new file mode 100644
index 00000000000..c76bd13f989
--- /dev/null
+++ b/0001-baidunetdisk-bin-deksktop-file.patch
@@ -0,0 +1,12 @@
+diff -ura usr/share/applications/baidunetdisk.desktop usr.new/share/applications/baidunetdisk.desktop
+--- usr/share/applications/baidunetdisk.desktop 2019-06-14 16:29:25.000000000 +0800
++++ usr.new/share/applications/baidunetdisk.desktop 2019-07-21 20:33:47.630360484 +0800
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Name=baidunetdisk
+ Comment=百度网盘
+-Exec="/opt/baidunetdisk/baidunetdisk" %U
++Exec=env HOME=$HOME/.local/share/ /usr/bin/baidunetdisk %U
+ Terminal=false
+ Type=Application
+ Icon=baidunetdisk
diff --git a/PKGBUILD b/PKGBUILD
index 4d232c9392a..fc3e07d5db6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=baidunetdisk
pkgname=baidunetdisk-bin
pkgver=2.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="Baidu Net Disk is a cloud storage client (Linux Version)."
arch=('x86_64')
depends=('libxss' 'gtk3' 'nss')
@@ -15,19 +15,19 @@ options=('!strip')
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
source=("LICENSE.html::https://pan.baidu.com/disk/duty/index.html"
- "baidunetdisk-bin.patch")
+ "0001-baidunetdisk-bin-deksktop-file.patch")
source_x86_64=("${pkgname}-${pkgver}.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/${_pkgname}_linux_${pkgver}.deb")
sha256sums=('17cb003654df74201befd7daa9c0ad79d4bde67fa00a5db01a3aa3f813a8ea65'
- '1b0652455f7897d450c8aade088c83eeff7f12c2bca265b822326d75125bfb5f')
+ '4ac5e68e4b029fa292b7272343a0f16480c0e49fd1ab6e750939a342578fd2dd')
sha256sums_x86_64=('6b7993aa75e195b00ba21aa64a743434716eba03a9c7916bde4ef81342c38e3a')
prepare() {
bsdtar -xpf "data.tar.xz"
- # modify the path of executable programs
- patch -d "usr" -p1 <"${pkgname}.patch"
+ # # modify the HOME environment variable for the application's desktop file
+ patch -d "usr" -p1 <"0001-baidunetdisk-bin-deksktop-file.patch"
}
package() {
@@ -49,5 +49,4 @@ package() {
"${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.electron.txt"
ln -s "/usr/lib/${_pkgname}/LICENSES.chromium.html" \
"${pkgdir}/usr/share/licenses/${_pkgname}/LICENSES.chromium.html"
-
}
diff --git a/baidunetdisk-bin.patch b/baidunetdisk-bin.patch
deleted file mode 100644
index 3ff0f491e0c..00000000000
--- a/baidunetdisk-bin.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --unified --recursive --text usr/share/applications/baidunetdisk.desktop usr.new/share/applications/baidunetdisk.desktop
---- usr/share/applications/baidunetdisk.desktop 2019-06-14 16:29:25.000000000 +0800
-+++ usr.new/share/applications/baidunetdisk.desktop 2019-07-06 00:22:56.969927845 +0800
-@@ -1,7 +1,7 @@
- [Desktop Entry]
- Name=baidunetdisk
- Comment=百度网盘
--Exec="/opt/baidunetdisk/baidunetdisk" %U
-+Exec=HOME=$HOME/.config "/usr/bin/baidunetdisk" %U
- Terminal=false
- Type=Application
- Icon=baidunetdisk