diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 64 | ||||
-rw-r--r-- | requirements-versions.patch (renamed from dependencies.patch) | 5 |
3 files changed, 47 insertions, 37 deletions
@@ -1,19 +1,18 @@ pkgbase = python-syncthing pkgdesc = Python bindings to the Syncthing REST interface pkgver = 2.3.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/blakev/python-syncthing arch = any - license = GPL - depends = syncthing + license = MIT + makedepends = python-setuptools depends = python - depends = python-requests depends = python-dateutil - options = !emptydirs + depends = python-requests source = https://files.pythonhosted.org/packages/source/s/syncthing/syncthing-2.3.1.tar.gz - source = dependencies.patch - md5sums = ead41fbbc898fa53d276261b490d5b45 - md5sums = 87ca42df5cd7771906db75c32452bb3d + source = requirements-versions.patch + sha256sums = ad168e80c073aa6f87e71e0da6db6348b3c663586fb27d6568965f3a2be13343 + sha256sums = 268b08ca14af7c134a4655c3a5d269f5256bcb891f0745f0c08a0c04615b6211 pkgname = python-syncthing @@ -1,38 +1,48 @@ -# Maintainer: Doron Behar <doron.behar@gmail.com> +# Maintainer: peippo <christoph+aur@christophfink.com> -pkgname=python-syncthing -_name=syncthing -pkgver=2.3.1 -pkgrel=2 +pkgname="python-syncthing" +_name=${pkgname#python-} pkgdesc="Python bindings to the Syncthing REST interface" -arch=('any') url="https://github.com/blakev/python-syncthing" -license=('GPL') -groups=() -depends=('syncthing' 'python' 'python-requests' 'python-dateutil') -makedepends=() -provides=() -conflicts=() -replaces=() -backup=() -options=(!emptydirs) -install= -source=( - "https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" - "dependencies.patch" + +pkgver=2.3.1 +pkgrel=3 + +arch=("any") +license=("MIT") + +makedepends=( + "python-setuptools" +) +depends=( + "python" + "python-dateutil" + "python-requests" ) -md5sums=('ead41fbbc898fa53d276261b490d5b45' - '87ca42df5cd7771906db75c32452bb3d') +source=( + "https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz" + "requirements-versions.patch" +) +sha256sums=( + "ad168e80c073aa6f87e71e0da6db6348b3c663586fb27d6568965f3a2be13343" + "268b08ca14af7c134a4655c3a5d269f5256bcb891f0745f0c08a0c04615b6211" +) prepare() { - cd "${srcdir}/${_name}-${pkgver}" - patch -p0 < ${srcdir}/dependencies.patch + cd "${srcdir}"/${_name}-${pkgver} + patch --forward --strip=1 --input "${srcdir}/requirements-versions.patch" } -package() { - cd "$srcdir/$_name-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 +build() { + cd "${srcdir}"/${_name}-${pkgver} + python setup.py build } -# vim:set ts=2 sw=2 et: +package() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +} diff --git a/dependencies.patch b/requirements-versions.patch index aa3888645c3b..871fb9358e6e 100644 --- a/dependencies.patch +++ b/requirements-versions.patch @@ -1,5 +1,6 @@ ---- setup.py 2018-08-13 19:08:11.000000000 +0200 -+++ - 2018-08-25 14:42:08.852853550 +0200 +diff --unified --recursive --text a/setup.py b/setup.py +--- a/setup.py 2020-03-12 11:51:30.759503274 +0200 ++++ b/setup.py 2020-03-12 11:51:46.215411606 +0200 @@ -12,8 +12,8 @@ url = 'https://github.com/blakev/python-syncthing', license = 'The MIT License', |