summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2021-02-10 01:50:28 +0100
committerMassimiliano Torromeo2021-02-10 01:50:28 +0100
commite6bdcc61bdd80918acf602f7668b4c3147558193 (patch)
tree9b928f9a54e26d496d6c9d78742773eabe75420c
parent0bc906d7c4956ec50788a5c13ba5d06d3dbc5cca (diff)
downloadaur-e6bdcc61bdd80918acf602f7668b4c3147558193.tar.gz
vendored xdg.py
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD18
2 files changed, 16 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4f1bcefae11..e385576182e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,17 @@
pkgbase = python-rmcl
pkgdesc = FUSE access to the reMarkable Cloud
pkgver = 0.3.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/rschroll/rmfuse/
arch = any
license = MIT
makedepends = python-setuptools
depends = python-trio
depends = python-asks
- depends = python-pyxdg
source = https://files.pythonhosted.org/packages/source/r/rmcl/rmcl-0.3.0.tar.gz
+ source = xdg.py::https://raw.githubusercontent.com/srstevenson/xdg/5.0.1/src/xdg/__init__.py
sha256sums = df5c38176309cb119c29bf9bca9d8f2f6427280241a882106b939db17ef48f3d
+ sha256sums = 93a5ba17785c5e00d24ebd0e148d36470076c03fa16cf7e9a113a7d8fb1bceba
pkgname = python-rmcl
diff --git a/PKGBUILD b/PKGBUILD
index 2d01b325910..53b98264cbf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,31 @@
pkgname=python-rmcl
pkgver=0.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="FUSE access to the reMarkable Cloud"
arch=(any)
url="https://github.com/rschroll/rmfuse/"
license=('MIT')
-depends=('python-trio' 'python-asks' 'python-pyxdg')
+depends=('python-trio' 'python-asks')
makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/r/rmcl/rmcl-$pkgver.tar.gz")
-sha256sums=('df5c38176309cb119c29bf9bca9d8f2f6427280241a882106b939db17ef48f3d')
+source=("https://files.pythonhosted.org/packages/source/r/rmcl/rmcl-$pkgver.tar.gz"
+ "xdg.py::https://raw.githubusercontent.com/srstevenson/xdg/5.0.1/src/xdg/__init__.py")
+sha256sums=('df5c38176309cb119c29bf9bca9d8f2f6427280241a882106b939db17ef48f3d'
+ '93a5ba17785c5e00d24ebd0e148d36470076c03fa16cf7e9a113a7d8fb1bceba')
build() {
cd "$srcdir"/rmcl-$pkgver
+ sed -r 's/^from xdg /from .xdg /' -i rmcl/*.py
python setup.py build
}
package() {
+ _site_packages=$(python -sSc 'import site; print(site.getsitepackages()[0])')
+
cd "$srcdir"/rmcl-$pkgver
python setup.py install -O1 --skip-build --root="$pkgdir"
- install -Dm0644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # vendoring xdg.py due to conflicts with python-pyxdg
+ install -Dm0644 "$srcdir"/xdg.py "$pkgdir$_site_packages"/rmcl/xdg.py
+ rm "$pkgdir$_site_packages"/rmcl-$pkgver-*.egg-info/requires.txt
}