summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD15
2 files changed, 15 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3e25a3c030c..fe193320263 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-b2sdk
pkgdesc = Python library to access B2 cloud storage.
- pkgver = 1.1.4
+ pkgver = 1.2.0
pkgrel = 1
url = https://github.com/Backblaze/b2-sdk-python
arch = any
@@ -10,10 +10,9 @@ pkgbase = python-b2sdk
depends = python-logfury>=0.1.2
depends = python-requests>=2.9.1
depends = python-setuptools
- depends = python-six>=1.10
depends = python-tqdm>=4.5.0
- source = https://github.com/Backblaze/b2-sdk-python/archive/v1.1.4.tar.gz
- sha256sums = 230d88d1368345f0175c1df3c4e8225b4e481b97263ed3bb1e24eb5b9c204a76
+ source = https://github.com/Backblaze/b2-sdk-python/archive/v1.2.0.tar.gz
+ sha256sums = 80d2daeaee38178a4d76922da2e69d7ad1f0d90fccea90d724a38909abb69b27
pkgname = python-b2sdk
diff --git a/PKGBUILD b/PKGBUILD
index 2f5a142a0c7..f455aa88144 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,9 @@
pkgname=python-b2sdk
_pkgname=b2-sdk-python
-pkgver=1.1.4
+#_pkgname=b2sdk
+#pkgver=1.3.0
+pkgver=1.2.0
pkgrel=1
pkgdesc='Python library to access B2 cloud storage.'
arch=(any)
@@ -13,12 +15,13 @@ depends=('python'
'python-logfury>=0.1.2'
'python-requests>=2.9.1'
'python-setuptools'
- 'python-six>=1.10'
'python-tqdm>=4.5.0'
)
+#source=("https://files.pythonhosted.org/packages/source/b/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+#sha256sums=('af53e2449414b772a0bd6fad311d98a171c3693f77ebca933499946e786715ae')
source=(https://github.com/Backblaze/${_pkgname}/archive/v${pkgver}.tar.gz)
-sha256sums=('230d88d1368345f0175c1df3c4e8225b4e481b97263ed3bb1e24eb5b9c204a76')
+sha256sums=('80d2daeaee38178a4d76922da2e69d7ad1f0d90fccea90d724a38909abb69b27')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
@@ -32,4 +35,10 @@ build() {
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
python setup.py install --root=${pkgdir} --optimize=1
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # https://wiki.archlinux.org/index.php/Python_package_guidelines
+ local site_packages=$(python -c 'import site; print(site.getsitepackages()[0])')
+ rm -rf "${pkgdir}${site_packages}/test"
}