[arch-commits] Commit in python-html2text/repos/community-any (PKGBUILD PKGBUILD)

Jaroslav Lichtblau jlichtblau at archlinux.org
Fri Apr 29 18:34:09 UTC 2016


    Date: Friday, April 29, 2016 @ 20:34:09
  Author: jlichtblau
Revision: 172798

archrelease: copy trunk to community-any

Added:
  python-html2text/repos/community-any/PKGBUILD
    (from rev 172797, python-html2text/trunk/PKGBUILD)
Deleted:
  python-html2text/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   86 ++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 54 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-29 18:33:53 UTC (rev 172797)
+++ PKGBUILD	2016-04-29 18:34:09 UTC (rev 172798)
@@ -1,32 +0,0 @@
-# $Id: PKGBUILD 97778 2013-09-29 16:22:13Z jlichtblau $
-# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
-
-pkgname=python-html2text
-pkgver=2015.11.4
-pkgrel=1
-pkgdesc="A HTML to markdown-structured text converter"
-arch=('any')
-url="https://pypi.python.org/pypi/html2text/"
-license=('GPL3')
-depends=('python-setuptools')
-provides=('html2text')
-replaces=('html2text')
-source=(https://pypi.python.org/packages/source/h/html2text/html2text-$pkgver.tar.gz)
-sha256sums=('44531c00fd125d0d987adf4e5ab6b4a8a2b44bfa5c4dc8896f50aa0e35c33708')
-
-build() {
-  cd "${srcdir}"/html2text-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "${srcdir}"/html2text-$pkgver
-#  PYTHONPATH=$PYTHONPATH:. python setup.py test --verbose
-}
-
-package() {
-  cd "${srcdir}"/html2text-${pkgver}
-  python setup.py install --root="${pkgdir}"
-}

Copied: python-html2text/repos/community-any/PKGBUILD (from rev 172797, python-html2text/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-04-29 18:34:09 UTC (rev 172798)
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 97778 2013-09-29 16:22:13Z jlichtblau $
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Felix Yan <felixonmars at archlinux>
+
+pkgbase=python-html2text
+pkgname=('python-html2text' 'python2-html2text')
+pkgver=2016.4.2
+pkgrel=1
+pkgdesc="A HTML to markdown-structured text converter"
+arch=('any')
+url="https://pypi.python.org/pypi/html2text/"
+license=('GPL3')
+makedepends=('python-setuptools' 'python2-setuptools')
+provides=('html2text')
+replaces=('html2text')
+source=(https://pypi.python.org/packages/source/h/html2text/html2text-$pkgver.tar.gz)
+sha256sums=('32e5e49eb520335bae200a00e3cc981f1ade558930068e1bb2a6e3fb1504f951')
+
+prepare() {
+  cp -a html2text-$pkgver{,-py2}
+}
+
+build() {
+  cd "${srcdir}"/html2text-$pkgver
+  python setup.py build
+  
+  cd "${srcdir}"/html2text-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "${srcdir}"/html2text-$pkgver
+  PYTHONPATH=$PYTHONPATH:. python setup.py test --verbose
+
+  cd "${srcdir}"/html2text-$pkgver-py2
+  PYTHONPATH=$PYTHONPATH:. python2 setup.py test --verbose
+}
+
+package_python-html2text() {
+  depends=('python-setuptools')
+
+  cd "${srcdir}"/html2text-$pkgver
+  python setup.py install --root="${pkgdir}"
+}
+
+package_python2-html2text() {
+  depends=('python2-setuptools')
+
+  cd "${srcdir}"/html2text-$pkgver-py2
+  python setup.py install --root="${pkgdir}"
+  mv "$pkgdir/usr/bin/html2text"{,2}
+}



More information about the arch-commits mailing list