summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-07-23 20:14:01 +0800
committerUniversebenzene2019-07-23 20:14:01 +0800
commit7a2ea2913b1ce35950108cd5dc5438b8dc48d916 (patch)
tree76945d475a9752e1f336212cedf4650015d89123
parent283ea39dbec477a0189b788c0f18414179997791 (diff)
downloadaur-7a2ea2913b1ce35950108cd5dc5438b8dc48d916.tar.gz
Correct patch; change home dir
-rw-r--r--.SRCINFO8
-rw-r--r--0001-baidunetdisk-bin-deksktop-file.patch (renamed from 0002-baidunetdisk-bin-deksktop-file.patch)4
-rw-r--r--PKGBUILD11
-rwxr-xr-xbaidunetdisk-wrapper.sh2
4 files changed, 13 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8c5cb538c2a..a2d22b6aff2 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 = 4
+ pkgrel = 5
url = https://pan.baidu.com
arch = x86_64
license = custom
@@ -12,11 +12,11 @@ pkgbase = baidunetdisk-bin
conflicts = baidunetdisk
options = !strip
source = LICENSE.html::https://pan.baidu.com/disk/duty/index.html
- source = 0002-baidunetdisk-bin-deksktop-file.patch
+ source = 0001-baidunetdisk-bin-deksktop-file.patch
source = baidunetdisk-wrapper.sh
sha256sums = 17cb003654df74201befd7daa9c0ad79d4bde67fa00a5db01a3aa3f813a8ea65
- sha256sums = 8486c6c165b86e3e62dba58c0eb655260dacafc4108c4d018c8ddd380d9b237c
- sha256sums = 5cd17d98b37683dbd65c3b2d19caded4026d2b4af27bf798aa102617d8b1fd91
+ sha256sums = d72eb6fa07abc0e7c2298fcecbe4a4e6849c63a6a31c39706e0dfea870e85aff
+ sha256sums = c0035e038344a154421301b7855c274049ad432a5b06b52efc74831daa73e02e
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/0002-baidunetdisk-bin-deksktop-file.patch b/0001-baidunetdisk-bin-deksktop-file.patch
index 0c8167a69ea..de74771e010 100644
--- a/0002-baidunetdisk-bin-deksktop-file.patch
+++ b/0001-baidunetdisk-bin-deksktop-file.patch
@@ -1,11 +1,11 @@
--- a/share/applications/baidunetdisk.desktop 2019-06-14 16:29:25.000000000 +0800
-+++ b/share/applications/baidunetdisk.desktop 2019-07-22 15:14:55.520143407 +0800
++++ b/share/applications/baidunetdisk.desktop 2019-07-23 19:58:15.427322655 +0800
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=baidunetdisk
Comment=百度网盘
-Exec="/opt/baidunetdisk/baidunetdisk" %U
-+Exec=/usr/bin/baidunetdisk-wrapper.sh %U
++Exec=/usr/bin/baidunetdisk %U
Terminal=false
Type=Application
Icon=baidunetdisk
diff --git a/PKGBUILD b/PKGBUILD
index b9c675c28ff..020531652ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
# Maintainer: Ariel AxionL <i at axionl dot me>
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
# Contributor: lilydjwg <lilydjwg at gmail dot com>
_pkgname=baidunetdisk
pkgname=baidunetdisk-bin
pkgver=2.0.1
-pkgrel=4
+pkgrel=5
pkgdesc="Baidu Net Disk is a cloud storage client (Linux Version)."
arch=('x86_64')
depends=('libxss' 'gtk3' 'nss')
@@ -16,21 +17,21 @@ 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"
- "0002-baidunetdisk-bin-deksktop-file.patch"
+ "0001-baidunetdisk-bin-deksktop-file.patch"
"baidunetdisk-wrapper.sh")
source_x86_64=("${pkgname}-${pkgver}.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/${_pkgname}_linux_${pkgver}.deb")
sha256sums=('17cb003654df74201befd7daa9c0ad79d4bde67fa00a5db01a3aa3f813a8ea65'
- '8486c6c165b86e3e62dba58c0eb655260dacafc4108c4d018c8ddd380d9b237c'
- '5cd17d98b37683dbd65c3b2d19caded4026d2b4af27bf798aa102617d8b1fd91')
+ 'd72eb6fa07abc0e7c2298fcecbe4a4e6849c63a6a31c39706e0dfea870e85aff'
+ 'c0035e038344a154421301b7855c274049ad432a5b06b52efc74831daa73e02e')
sha256sums_x86_64=('6b7993aa75e195b00ba21aa64a743434716eba03a9c7916bde4ef81342c38e3a')
prepare() {
bsdtar -xpf "data.tar.xz"
# # modify the HOME environment variable for the application's desktop file
- patch -d "usr" -p1 <"0002-baidunetdisk-bin-deksktop-file.patch"
+ patch -d "usr" -p1 <"0001-baidunetdisk-bin-deksktop-file.patch"
}
package() {
diff --git a/baidunetdisk-wrapper.sh b/baidunetdisk-wrapper.sh
index caba62cea06..718739f0af1 100755
--- a/baidunetdisk-wrapper.sh
+++ b/baidunetdisk-wrapper.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-HOME="${HOME:-/tmp}/.local/share" exec /usr/lib/baidunetdisk/baidunetdisk "$@"
+HOME="${HOME:-/tmp}/.local/share/baidu" exec /usr/lib/baidunetdisk/baidunetdisk "$@"