[arch-commits] Commit in python2-pycurl/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Dec 18 13:13:33 UTC 2020


    Date: Friday, December 18, 2020 @ 13:13:31
  Author: felixonmars
Revision: 404477

archrelease: copy trunk to extra-x86_64

Added:
  python2-pycurl/repos/extra-x86_64/
  python2-pycurl/repos/extra-x86_64/PKGBUILD
    (from rev 404476, python2-pycurl/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python2-pycurl/repos/extra-x86_64/PKGBUILD (from rev 404476, python2-pycurl/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2020-12-18 13:13:31 UTC (rev 404477)
@@ -0,0 +1,45 @@
+# 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>
+
+pkgname=python2-pycurl
+pkgver=7.43.0.3
+pkgrel=1
+epoch=1
+pkgdesc="A Python 2.x interface to libcurl"
+arch=('x86_64')
+url="http://pycurl.sourceforge.net/"
+license=('LGPL' 'MIT')
+depends=('python2' 'curl')
+checkdepends=('python2-bottle' 'python2-nose-show-skipped' 'vsftpd' 'python2-flaky' 'python2-pyflakes')
+source=("https://github.com/pycurl/pycurl/archive/REL_${pkgver//./_}/$pkgname-$pkgver.tar.gz")
+sha512sums=('1c210be7dde473a524fbc3084066b0aaa13c0a50cc2ab03bceb49030897058ae09bb4b8b5961823184469dc0901a5aae0f67992f408f37bb9bcb0c34ea014aec')
+
+prepare() {
+  mv pycurl-REL_${pkgver//./_} pycurl-$pkgver
+  cd pycurl-$pkgver
+  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 pycurl-$pkgver
+  make PYTHON=python2
+  python2 setup.py build
+}
+
+check() {
+  export PYCURL_VSFTPD_PATH=vsftpd
+  # We don't have HTTP2 enabled
+
+  cd pycurl-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make PYTHON=python2 NOSETESTS=nosetests2 test || warning "Tests failed"
+}
+
+package() {
+  cd pycurl-$pkgver
+  python2 setup.py install -O1 --root="$pkgdir"
+  install -D -m644 COPYING-MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list