summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-08-29 14:04:31 +1200
committercaltlgin2020-08-29 14:04:31 +1200
commit1a8ce14015a3e29449cb5b6c3f9aa9471114482e (patch)
tree176bea9c26285b47072f068b1faa3d29d2bf659c
parent97d982bf85d9e9a68112753879a06359ce2aa892 (diff)
downloadaur-1a8ce14015a3e29449cb5b6c3f9aa9471114482e.tar.gz
Adopt PKGBUILD and update to v3.2.1
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD35
2 files changed, 30 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dffa1b61ed9..6a9b1b85583 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,18 @@
pkgbase = python-transmissionrpc
pkgdesc = Module to communicate with Transmission BT client via JSON-RPC
- pkgver = 0.11
+ pkgver = 3.2.1
pkgrel = 1
- url = https://bitbucket.org/blueluna/transmissionrpc/wiki/Home
+ url = https://github.com/Trim21/transmission-rpc
arch = any
license = MIT
makedepends = python-setuptools
depends = python
- depends = python-six
- source = https://bitbucket.org/blueluna/transmissionrpc/get/release-0.11.tar.gz
- md5sums = 2ec4dc465435cc970c20f1e10524439b
+ depends = python-requests
+ depends = python-typing_extensions
+ depends = python-yarl
+ provides = transmission_rpc
+ source = https://files.pythonhosted.org/packages/source/t/transmission-rpc/transmission-rpc-3.2.1.tar.gz
+ sha256sums = 04512c856eddcee4f360b61e7e87fe042fd7c73585115095532b880e396cf0d4
pkgname = python-transmissionrpc
diff --git a/PKGBUILD b/PKGBUILD
index ba5fba6fb5d..8da890f5cc1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,30 @@
-# Maintainer: Bogdan Szczurek <thebodzio@gmail.com>
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+# Contributor: Bogdan Szczurek <thebodzio@gmail.com>
-pkgname=python-transmissionrpc
-pkgver=0.11
+_pkgname='transmission-rpc'
+pkgname="python-${_pkgname/-/}"
+pkgver=3.2.1
pkgrel=1
-pkgdesc="Module to communicate with Transmission BT client via JSON-RPC"
-arch=(any)
-url="https://bitbucket.org/blueluna/transmissionrpc/wiki/Home"
+pkgdesc='Module to communicate with Transmission BT client via JSON-RPC'
+arch=('any')
+url='https://github.com/Trim21/transmission-rpc'
license=('MIT')
-depends=('python' 'python-six')
+depends=('python' 'python-requests' 'python-typing_extensions' 'python-yarl')
makedepends=('python-setuptools')
-source=(https://bitbucket.org/blueluna/${pkgname:7}/get/release-${pkgver}.tar.gz)
+provides=("${_pkgname/-/_}")
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('04512c856eddcee4f360b61e7e87fe042fd7c73585115095532b880e396cf0d4')
-package() {
- cd "$srcdir/blueluna-${pkgname:7}-eb2a32720f8a"
- python setup.py install --root="$pkgdir/" --optimize=1
+build() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py build
+}
- install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+package() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md'
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" 'LICENSE'
}
-md5sums=('2ec4dc465435cc970c20f1e10524439b')
+# vim: ts=2 sw=2 et: