[arch-commits] Commit in python-certifi/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:28:21 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:28:21
  Author: foutrelis
Revision: 140940

archrelease: copy trunk to community-staging-any

Added:
  python-certifi/repos/community-staging-any/
  python-certifi/repos/community-staging-any/PKGBUILD
    (from rev 140939, python-certifi/trunk/PKGBUILD)

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

Copied: python-certifi/repos/community-staging-any/PKGBUILD (from rev 140939, python-certifi/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 16:28:21 UTC (rev 140940)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: William J Bowman <bluephoenix47 at gmail.com>
+
+pkgbase=python-certifi
+pkgname=('python-certifi' 'python2-certifi')
+_libname=${pkgbase/python-/}
+pkgver=2015.9.6.2
+pkgrel=2
+pkgdesc="Python package for providing Mozilla's CA Bundle"
+arch=(any)
+url="http://pypi.python.org/pypi/certifi"
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz")
+sha512sums=('78166fa708e7f5162bc36c5b552b1c19e316f4f540db5733167730e9d3a7610b90622546b9e49bc539d9d4de543a169046d24fbbcded98b74f68351a91d15f31')
+
+prepare() {
+  cp -a $_libname-$pkgver{,-py2}
+
+  cd $_libname-$pkgver-py2
+  sed -i '1s|python$|python2|' certifi/core.py
+}
+
+build() {
+  cd "$srcdir/$_libname-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/$_libname-$pkgver-py2"
+  python2 setup.py build
+}
+
+package_python-certifi() {
+  depends=('python')
+
+  cd "$srcdir/$_libname-$pkgver"
+  python setup.py install --skip-build -O1 --root="$pkgdir"
+  install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-certifi() {
+  depends=('python2')
+
+  cd "$srcdir/$_libname-$pkgver-py2"
+  python2 setup.py install --skip-build -O1 --root="$pkgdir"
+  install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list