[arch-commits] Commit in python-pycurl/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jan 22 07:03:05 UTC 2020
Date: Wednesday, January 22, 2020 @ 07:03:04
Author: felixonmars
Revision: 373774
archrelease: copy trunk to extra-x86_64
Added:
python-pycurl/repos/extra-x86_64/PKGBUILD
(from rev 373773, python-pycurl/trunk/PKGBUILD)
Deleted:
python-pycurl/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 145 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 71 insertions(+), 74 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-22 07:02:49 UTC (rev 373773)
+++ PKGBUILD 2020-01-22 07:03:04 UTC (rev 373774)
@@ -1,74 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-
-pkgbase=python-pycurl
-pkgname=('python-pycurl' 'python2-pycurl')
-pkgver=7.43.0.3
-pkgrel=4
-arch=('x86_64')
-url="http://pycurl.sourceforge.net/"
-license=('LGPL' 'MIT')
-makedepends=('python' 'python2' 'curl')
-checkdepends=('python-bottle' 'python2-bottle' 'python-nose-show-skipped' 'python2-nose-show-skipped'
- 'vsftpd' 'python-flaky' 'python2-flaky' 'python-pyflakes' 'python2-pyflakes')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pycurl/pycurl/archive/REL_${pkgver//./_}.tar.gz"
- python3.8.patch::https://github.com/pycurl/pycurl/pull/600.patch)
-sha512sums=('1c210be7dde473a524fbc3084066b0aaa13c0a50cc2ab03bceb49030897058ae09bb4b8b5961823184469dc0901a5aae0f67992f408f37bb9bcb0c34ea014aec'
- '982275200c5c9145bf3ed69050bc9b93b7697355baf0cade0c21043103440f930e81792e11bc18a072f4a767cf7f2fcf21b9a8a8adaf5bf2a2d3bf049685a094')
-
-prepare() {
- mv pycurl-REL_${pkgver//./_} pycurl-$pkgver
- patch -d pycurl-$pkgver -p1 -i ../python3.8.patch
- cp -a pycurl-$pkgver{,-py2}
-
- cd "$srcdir"/pycurl-$pkgver
- find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python3|" {} +
- sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python-pycurl"/' setup.py
- sed -e "s/nosetests/nosetests3/" -e "s/python/python3/" -i tests/run.sh
-
- cd "$srcdir"/pycurl-$pkgver-py2
- find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python2|" {} +
- sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python2-pycurl"/' setup.py
- sed -e "s/nosetests/nosetests2/" -e "s/python/python2/" -i tests/run.sh
- sed -e "s/pyflakes/pyflakes-python2/" -i Makefile
-}
-
-build() {
- cd "$srcdir"/pycurl-$pkgver
- make
- python3 setup.py build
-
- cd "$srcdir"/pycurl-$pkgver-py2
- make
- python2 setup.py build
-}
-
-check() {
- export PYCURL_VSFTPD_PATH=vsftpd
- # We don't have HTTP2 enabled
-
- cd "$srcdir"/pycurl-$pkgver
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" make test || warning "Tests failed"
-
- cd "$srcdir"/pycurl-$pkgver-py2
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make PYTHON=python2 NOSETESTS=nosetests2 test || warning "Tests failed"
-}
-
-package_python-pycurl() {
- pkgdesc="A Python 3.x interface to libcurl"
- depends=('python' 'curl')
-
- cd pycurl-$pkgver
- python setup.py install -O1 --root="$pkgdir"
- install -D -m644 COPYING-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pycurl() {
- pkgdesc="A Python 2.x interface to libcurl"
- depends=('python2' 'curl')
-
- cd pycurl-$pkgver-py2
- python2 setup.py install -O1 --root="$pkgdir"
- install -D -m644 COPYING-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-pycurl/repos/extra-x86_64/PKGBUILD (from rev 373773, python-pycurl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-22 07:03:04 UTC (rev 373774)
@@ -0,0 +1,71 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+
+pkgbase=python-pycurl
+pkgname=('python-pycurl' 'python2-pycurl')
+pkgver=7.43.0.4
+pkgrel=1
+arch=('x86_64')
+url="http://pycurl.sourceforge.net/"
+license=('LGPL' 'MIT')
+makedepends=('python' 'python2' 'curl')
+checkdepends=('python-bottle' 'python2-bottle' 'python-nose-show-skipped' 'python2-nose-show-skipped'
+ 'vsftpd' 'python-flaky' 'python2-flaky' 'python-pyflakes' 'python2-pyflakes')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pycurl/pycurl/archive/REL_${pkgver//./_}.tar.gz")
+sha512sums=('0dbc42ee43534634b604536b5f8598be78d4b16f840fc3ef26e68674bce265707d3d0183bdfd37252979920abebe25d772acb028408d7dedcaf3f7469e2684fe')
+
+prepare() {
+ mv pycurl-REL_${pkgver//./_} pycurl-$pkgver
+ cp -a pycurl-$pkgver{,-py2}
+
+ cd "$srcdir"/pycurl-$pkgver
+ find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python3|" {} +
+ sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python-pycurl"/' setup.py
+ sed -e "s/nosetests/nosetests3/" -e "s/python/python3/" -i tests/run.sh
+
+ cd "$srcdir"/pycurl-$pkgver-py2
+ find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python2|" {} +
+ sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python2-pycurl"/' setup.py
+ sed -e "s/nosetests/nosetests2/" -e "s/python/python2/" -i tests/run.sh
+ sed -e "s/pyflakes/pyflakes-python2/" -i Makefile
+}
+
+build() {
+ cd "$srcdir"/pycurl-$pkgver
+ make
+ python3 setup.py build
+
+ cd "$srcdir"/pycurl-$pkgver-py2
+ make
+ python2 setup.py build
+}
+
+check() {
+ export PYCURL_VSFTPD_PATH=vsftpd
+ # We don't have HTTP2 enabled
+
+ cd "$srcdir"/pycurl-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" make test || warning "Tests failed"
+
+ cd "$srcdir"/pycurl-$pkgver-py2
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make PYTHON=python2 NOSETESTS=nosetests2 test || warning "Tests failed"
+}
+
+package_python-pycurl() {
+ pkgdesc="A Python 3.x interface to libcurl"
+ depends=('python' 'curl')
+
+ cd pycurl-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -D -m644 COPYING-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pycurl() {
+ pkgdesc="A Python 2.x interface to libcurl"
+ depends=('python2' 'curl')
+
+ cd pycurl-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -D -m644 COPYING-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list