[arch-commits] Commit in python2-html2text/repos (2 files)

Felix Yan fyan at archlinux.org
Mon Feb 15 00:28:10 UTC 2016


    Date: Monday, February 15, 2016 @ 01:28:09
  Author: fyan
Revision: 161576

archrelease: copy trunk to community-staging-any

Added:
  python2-html2text/repos/community-staging-any/
  python2-html2text/repos/community-staging-any/PKGBUILD
    (from rev 161575, python2-html2text/trunk/PKGBUILD)

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

Copied: python2-html2text/repos/community-staging-any/PKGBUILD (from rev 161575, python2-html2text/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-02-15 00:28:09 UTC (rev 161576)
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 97778 2013-09-29 16:22:13Z jlichtblau $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=python2-html2text
+pkgver=2016.1.8
+pkgrel=1
+pkgdesc="A HTML to markdown-structured text converter"
+arch=('any')
+url="https://pypi.python.org/pypi/html2text/"
+license=('GPL3')
+depends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/h/html2text/html2text-$pkgver.tar.gz")
+sha256sums=('088046f9b126761ff7e3380064d4792279766abaa5722d0dd765d011cf0bb079')
+
+build() {
+  cd "${srcdir}"/html2text-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd "${srcdir}"/html2text-$pkgver
+  PYTHONPATH=$PYTHONPATH:. python2 setup.py test --verbose
+}
+
+package() {
+  cd "${srcdir}"/html2text-${pkgver}
+  python2 setup.py install --root="${pkgdir}"
+  
+  mv "$pkgdir/usr/bin/html2text"{,2}
+}



More information about the arch-commits mailing list