summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraxionl2019-11-24 01:50:13 +0800
committeraxionl2019-11-24 01:50:13 +0800
commit87b6413a5a78e1f085ddcf0b73c61e9ed00b2a81 (patch)
treeb3ab83b0cc6cf4e09633f0127a59a121808282e0
parent03eacb73260674697ccbdf12eada39f87b4a3ee5 (diff)
downloadaur-87b6413a5a78e1f085ddcf0b73c61e9ed00b2a81.tar.gz
[Fixed] baidunetdisk-bin: fix the pkgver
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 5 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f3f69e8df7e..91e45cd64a9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = baidunetdisk-bin
pkgdesc = Baidu Net Disk is a cloud storage client (Linux Version).
pkgver = 3.0.1.2
- pkgrel = 1
+ pkgrel = 2
url = https://pan.baidu.com
arch = x86_64
license = custom
@@ -17,7 +17,7 @@ pkgbase = baidunetdisk-bin
sha256sums = 80f8835a1d742ac9aa05701dfc2566b1db07b626d70e0e463688c9b5e4736e1d
sha256sums = d72eb6fa07abc0e7c2298fcecbe4a4e6849c63a6a31c39706e0dfea870e85aff
sha256sums = c0035e038344a154421301b7855c274049ad432a5b06b52efc74831daa73e02e
- source_x86_64 = baidunetdisk-bin-3.0.1.2.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/3.0.1.2/baidunetdisk_linux_3.0.1.2.2.deb
+ source_x86_64 = baidunetdisk-bin-3.0.1.2.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/3.0.1/baidunetdisk_linux_3.0.1.2.deb
sha256sums_x86_64 = 40eb1950af62a8b9b75da8ffb9a74416ae0d3fc886b07f6de7d63673683b1ef3
pkgname = baidunetdisk-bin
diff --git a/PKGBUILD b/PKGBUILD
index e450b2b3d49..ae2a900c3df 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@
_pkgname=baidunetdisk
pkgname=baidunetdisk-bin
pkgver=3.0.1.2
-pkgrel=1
-_subver=2
+pkgrel=2
+_mainver=`echo $pkgver | cut -f -3 -d '.'`
pkgdesc="Baidu Net Disk is a cloud storage client (Linux Version)."
arch=('x86_64')
depends=('libxss' 'gtk3' 'nss')
@@ -21,17 +21,13 @@ source=("LICENSE.html::https://pan.baidu.com/disk/duty/index.html"
"0001-baidunetdisk-bin-deksktop-file.patch"
"baidunetdisk-wrapper.sh")
-source_x86_64=("${pkgname}-${pkgver}.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/${pkgver}/${_pkgname}_linux_${pkgver}.${_subver}.deb")
+source_x86_64=("${pkgname}-${pkgver}.deb::https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/${_mainver}/${_pkgname}_linux_${pkgver}.deb")
sha256sums=('80f8835a1d742ac9aa05701dfc2566b1db07b626d70e0e463688c9b5e4736e1d'
'd72eb6fa07abc0e7c2298fcecbe4a4e6849c63a6a31c39706e0dfea870e85aff'
'c0035e038344a154421301b7855c274049ad432a5b06b52efc74831daa73e02e')
sha256sums_x86_64=('40eb1950af62a8b9b75da8ffb9a74416ae0d3fc886b07f6de7d63673683b1ef3')
-pkgver() {
- printf "%s.%s" ${pkgver} ${_subver}
-}
-
prepare() {
bsdtar -xpf "data.tar.xz"