summaryrefslogtreecommitdiff
path: root/python-oauth2/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-09 15:48:37 +0200
committerErich Eckner <git@eckner.net>2018-07-09 15:49:07 +0200
commit1247b39b66e7adfc3216f3664dea6db8f93beda6 (patch)
tree0738d938b087ae303b81cffe1a87a94f5575f18d /python-oauth2/PKGBUILD
parentfbb5466510eb3d3ca54b8f7bc57a0634470009b3 (diff)
downloadarchlinuxewe-1247b39b66e7adfc3216f3664dea6db8f93beda6.tar.xz
python-oauth2: cleanup
Diffstat (limited to 'python-oauth2/PKGBUILD')
-rw-r--r--python-oauth2/PKGBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/python-oauth2/PKGBUILD b/python-oauth2/PKGBUILD
index cf2d47d4e..d47f05679 100644
--- a/python-oauth2/PKGBUILD
+++ b/python-oauth2/PKGBUILD
@@ -1,5 +1,6 @@
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgbase=python-oauth2
+_pkgname=python-oauth2
pkgname=(python-oauth2 python2-oauth2)
pkgver=1.1.0
pkgrel=1
@@ -8,18 +9,15 @@ url='https://github.com/wndhydrnt/python-oauth2/'
arch=('any')
license=('MIT')
_depends=(
- 'python'
-)
-_mdepends=(
'python-mock'
+ 'python-mysql-connector'
'python-nose'
'python-pymongo'
'python-memcached'
- 'python-mysql-connector'
'python-redis'
- 'python-tornado'
- 'python-setuptools'
-)
+ 'python-tornado')
+_makedepends=(
+ 'python-setuptools')
_optdepends=(
'python-memcached'
'python-pymongo'
@@ -28,10 +26,10 @@ _optdepends=(
makedepends=(
"${_depends[@]}"
"${_depends[@]/python/python2}"
- "${_mdepends[@]}"
- "${_mdepends[@]/python/python2}"
+ "${_makedepends[@]}"
+ "${_makedepends[@]/python/python2}"
)
-source=("https://github.com/wndhydrnt/python-oauth2/archive/v${pkgver}.tar.gz")
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/wndhydrnt/python-oauth2/archive/v${pkgver}.tar.gz")
sha512sums=('376fa73711c64a787472b4be4b1e9407311886ed237dbe29399425fb5f92e2b72fab479d694e4acdbaa572aa0c43840e21cfb8fc4f128ee81240a59a3dcdc1b3')
prepare() {
@@ -86,7 +84,6 @@ package_python2-oauth2() {
depends=(
"python2>=2.${_pyVer}"
"python2<2.$((_pyVer+1))"
- "${_depends[@]}"
"${_depends[@]/python/python2}"
)
optdepends=("${_optdepends[@]/python/python2}")