[arch-commits] Commit in python-aiohttp-socks/trunk (PKGBUILD)
Santiago Torres-Arias
sangy at archlinux.org
Mon Mar 23 15:37:48 UTC 2020
Date: Monday, March 23, 2020 @ 15:37:48
Author: sangy
Revision: 603733
upgpkg: python-aiohttp-socks 0.3.6-1
Miscellaneous fixes to the PKGBUILD:
- Remove makedepend on git
- Add missing build() function
- Use $pkgver and $pkgname wherever possible
Modified:
python-aiohttp-socks/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-23 15:17:20 UTC (rev 603732)
+++ PKGBUILD 2020-03-23 15:37:48 UTC (rev 603733)
@@ -1,7 +1,7 @@
# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
pkgname=python-aiohttp-socks
-pkgver=0.3.4
+pkgver=0.3.6
pkgrel=1
pkgdesc="SOCKS proxy connector for aiohttp. SOCKS4(a) and SOCKS5 are supported."
arch=('any')
@@ -8,18 +8,24 @@
url="https://github.com/romis2012/aiohttp-socks/"
license=('Apache')
depends=('python-aiohttp')
-makedepends=('python' 'python-setuptools' 'git')
+makedepends=('python' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-asyncio')
-source=("git+https://github.com/romis2012/aiohttp-socks.git?tag=v${pkgver}")
-sha256sums=('SKIP')
+source=("https://github.com/romis2012/aiohttp-socks/archive/${pkgver}.tar.gz")
+sha256sums=('ec90a409f016b36b71e79a32d24373aca2641177bfaf69c19c31e0ca29bbf66e')
check() {
- cd "aiohttp-socks"
+ cd "${pkgname//python-}-${pkgver}"
pytest
}
+build() {
+ cd "${pkgname//python-}-${pkgver}"
+ python setup.py build
+
+}
+
package() {
- cd "aiohttp-socks"
+ cd "${pkgname//python-}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}
More information about the arch-commits
mailing list