[arch-commits] Commit in python2-httplib2/trunk (PKGBUILD)

Rémy Oudompheng remy at archlinux.org
Fri Jul 8 02:27:02 EDT 2011


    Date: Friday, July 8, 2011 @ 02:27:02
  Author: remy
Revision: 130817

upgpkg: python2-httplib2 0.6.0-5
Add Python3 support (FS#21807)

Modified:
  python2-httplib2/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-08 04:53:24 UTC (rev 130816)
+++ PKGBUILD	2011-07-08 06:27:02 UTC (rev 130817)
@@ -2,15 +2,18 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 # Contributor: Giorgio Lando <patroclo7 at gmail.com>
 # Contributor: Nicolas Quienot <niQo at aur>
-pkgname=python2-httplib2
+# Contributor: Jesse Young <jesse.young at gmail.com>
+
+pkgbase=python2-httplib2
+pkgname=(python-httplib2 python2-httplib2)
 _pkgbasename=httplib2
 pkgver=0.6.0
-pkgrel=4
+pkgrel=5
 pkgdesc="A comprehensive HTTP client library, supporting many features"
 url="http://code.google.com/p/httplib2/"
 license=('MIT')
 arch=(any)
-depends=(python2)
+makedepends=(python python2)
 provides=(httplib2)
 replaces=(httplib2)
 source=(http://httplib2.googlecode.com/files/${_pkgbasename}-${pkgver}.tar.gz
@@ -19,12 +22,22 @@
          'd65321d20730e3d9291dd63b43fdcda9')
 
 build() {
-  cd "${srcdir}/${_pkgbasename}-${pkgver}"
-  python2 setup.py build
+  cd "${srcdir}"
+  cp -Rpv "${_pkgbasename}-${pkgver}" "${pkgname[0]}-$pkgver"
+  cp -Rpv "${_pkgbasename}-${pkgver}" "${pkgname[1]}-$pkgver"
 }
 
-package() {
-  cd "${srcdir}/${_pkgbasename}-${pkgver}"
+package_python-httplib2() {
+  depends=('python')
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}"
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+package_python2-httplib2() {
+  depends=(python2)
+  cd "${srcdir}/${pkgname}-${pkgver}"
   python2 setup.py install --root="${pkgdir}"
   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
   install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/"



More information about the arch-commits mailing list